1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/repeated_multiret_values_test.v
2020-04-12 01:41:26 +02:00

14 lines
256 B
V

// verify fix for #2913
fn some_multiret_fn(a, b int) (int, int) {
return a + 1, b + 1
}
fn test_repeated_multiple_multiret() {
a, b := some_multiret_fn(1, 2)
assert a == 2
assert b == 3
c, d := some_multiret_fn(3, 4)
assert c == 4
assert d == 5
}