| 1 | vlib/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 | } |
| 7 | vlib/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 | |
| 12 | vlib/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 | } |
| 19 | vlib/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 | } |
| 26 | vlib/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 | } |
| 33 | vlib/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 | |