v/vlib/v/checker/tests/for_match_err.vv

16 lines
163 B
V

fn main() {
mut a := 2
for match a {
2 {
println('a == 2')
a = 0
}
0 {
println('a == 0')
}
else {
println('unexpected branch')
}
}
}