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