mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
21 lines
208 B
V
21 lines
208 B
V
fn test_match_expr_with_non_last_if_expr() {
|
|
out := match true {
|
|
true {
|
|
{
|
|
}
|
|
if true {
|
|
} else {
|
|
}
|
|
'a'
|
|
}
|
|
else {
|
|
for {
|
|
break
|
|
}
|
|
'b'
|
|
}
|
|
}
|
|
println(out)
|
|
assert out == 'a'
|
|
}
|