| 1 | vlib/v/checker/tests/match_expr_with_none_only.vv:3:3: notice: match is always true |
| 2 | 1 | fn main() { |
| 3 | 2 | a := match 1 { |
| 4 | 3 | 1 { none } |
| 5 | | ^ |
| 6 | 4 | else { none } |
| 7 | 5 | } |
| 8 | vlib/v/checker/tests/match_expr_with_none_only.vv:2:2: warning: unused variable: `a` |
| 9 | 1 | fn main() { |
| 10 | 2 | a := match 1 { |
| 11 | | ^ |
| 12 | 3 | 1 { none } |
| 13 | 4 | else { none } |
| 14 | vlib/v/checker/tests/match_expr_with_none_only.vv:2:7: error: invalid match expression, must supply at least one value other than `none` |
| 15 | 1 | fn main() { |
| 16 | 2 | a := match 1 { |
| 17 | | ~~~~~~~~~ |
| 18 | 3 | 1 { none } |
| 19 | 4 | else { none } |
| 20 |