1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/go_wait_1_test.v
2022-11-05 10:46:40 +03:00

11 lines
153 B
V

fn f(x int, y f64) f64 {
return x * y
}
fn test_go_return() {
r := spawn f(3, 4.0)
z := r.wait()
assert typeof(z).name == 'f64'
assert z == 12.0
}