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
2022-05-13 06:56:21 +03:00

11 lines
146 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
}