1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/optional_multi_return_test.v

11 lines
144 B
V

fn tuple() ?(int, int) {
return 1, 2
}
fn test_optional_multi_return() {
println(tuple()?)
a, b := tuple()?
assert a == 1
assert b == 2
}