vxx2 / vlib / v / checker / tests / match_missing.out
39 lines · 39 sloc · 1.15 KB · 9760a9c6b258017ed728d323cbcd3f7016c40c3b
Raw
1vlib/v/checker/tests/match_missing.vv:10:2: notice: match is always false
2 8 |
3 9 | match true {
4 10 | 'foo' == 'bar' {}
5 | ~~~~~~~~~~~~~~
6 11 | }
7vlib/v/checker/tests/match_missing.vv:1:1: error: `match` must have at least two branches including `else`, or an exhaustive set of branches
8 1 | match true {
9 | ~~~~~
10 2 | }
11 3 |
12vlib/v/checker/tests/match_missing.vv:5:2: error: `match` can have only one `else` branch
13 3 |
14 4 | match true {
15 5 | else {}
16 | ~~~~
17 6 | else {}
18 7 | }
19vlib/v/checker/tests/match_missing.vv:5:2: error: `else` must be the last branch of `match`
20 3 |
21 4 | match true {
22 5 | else {}
23 | ~~~~
24 6 | else {}
25 7 | }
26vlib/v/checker/tests/match_missing.vv:5:2: error: `match` must have at least one non `else` branch
27 3 |
28 4 | match true {
29 5 | else {}
30 | ~~~~
31 6 | else {}
32 7 | }
33vlib/v/checker/tests/match_missing.vv:9:1: error: match must be exhaustive (add match branches for: `true`, `false` or `else {}` at the end)
34 7 | }
35 8 |
36 9 | match true {
37 | ~~~~~~~~~~~~
38 10 | 'foo' == 'bar' {}
39 11 | }
40