vxx2 / vlib / v / checker / tests / match_expr_empty_branch.out
18 lines · 18 sloc · 601 bytes · 9760a9c6b258017ed728d323cbcd3f7016c40c3b
Raw
1vlib/v/checker/tests/match_expr_empty_branch.vv:2:2: notice: match is always true
2 1 | _ := match true {
3 2 | true { 0 }
4 | ~~~~
5 3 | false {}
6 4 | }
7vlib/v/checker/tests/match_expr_empty_branch.vv:3:2: notice: match is always false
8 1 | _ := match true {
9 2 | true { 0 }
10 3 | false {}
11 | ~~~~~
12 4 | }
13vlib/v/checker/tests/match_expr_empty_branch.vv:3:2: error: `match` expression requires an expression as the last statement of every branch
14 1 | _ := match true {
15 2 | true { 0 }
16 3 | false {}
17 | ~~~~~~~~
18 4 | }
19