vxx2 / vlib / v / checker / tests / if_match_expr_err.vv
13 lines · 13 sloc · 220 bytes · 7e13518cc2a1cd24be0c83cca9285c1127c9268c
Raw
1fn main() {
2 a := 0
3 if match a {
4 0 {
5 println('a is zero')
6 }
7 else {
8 println('unreachable branch')
9 }
10 } 5 < 7 {
11 println('5 is less than 7')
12 }
13}
14