mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
148 B
V
11 lines
148 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
|
|
}
|