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

14 lines
197 B
V

type Abc = int | rune | string | u32
fn cyz() (Abc, string) {
return 'a', 'b'
}
fn test_multiret_with_sumtype() {
x, y := cyz()
println(x)
println(y)
assert x == Abc('a')
assert y == 'b'
}