v2 / vlib / v / checker / tests / match_else_last_expr.out
21 lines · 21 sloc · 750 bytes · 9760a9c6b258017ed728d323cbcd3f7016c40c3b
Raw
1vlib/v/checker/tests/match_else_last_expr.vv:3:3: notice: match is always true
2 1 | fn main() {
3 2 | match 1 {
4 3 | 1 { println('1') }
5 | ^
6 4 | else { println('else') }
7 5 | 4 { println('4') }
8vlib/v/checker/tests/match_else_last_expr.vv:5:3: notice: match is always false
9 3 | 1 { println('1') }
10 4 | else { println('else') }
11 5 | 4 { println('4') }
12 | ^
13 6 | }
14 7 | }
15vlib/v/checker/tests/match_else_last_expr.vv:4:3: error: `else` must be the last branch of `match`
16 2 | match 1 {
17 3 | 1 { println('1') }
18 4 | else { println('else') }
19 | ~~~~
20 5 | 4 { println('4') }
21 6 | }
22