mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
150 B
V
13 lines
150 B
V
fn test_if_expr_with_nested_match_expr() {
|
|
a := if true {
|
|
match `a` {
|
|
`a` { 0 }
|
|
else { 1 }
|
|
}
|
|
} else {
|
|
3
|
|
}
|
|
println(a)
|
|
assert a == 0
|
|
}
|