mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
150 B
V
11 lines
150 B
V
fn f(x int, y f64) f64 {
|
|
return x * y
|
|
}
|
|
|
|
fn test_go_return() {
|
|
r := go f(3, 4.0)
|
|
z := r.wait()
|
|
assert typeof(z).name == 'f64'
|
|
assert z == 12.0
|
|
}
|