| 1 | vlib/v/checker/tests/match_undefined_cond.vv:2:15: error: undefined ident: `asd` |
| 2 | 1 | fn main() { |
| 3 | 2 | res := match asd { |
| 4 | | ~~~ |
| 5 | 3 | 1 { 'foo' } |
| 6 | 4 | 2 { 'test' } |
| 7 | vlib/v/checker/tests/match_undefined_cond.vv:3:3: error: cannot match `void` with `int literal` |
| 8 | 1 | fn main() { |
| 9 | 2 | res := match asd { |
| 10 | 3 | 1 { 'foo' } |
| 11 | | ^ |
| 12 | 4 | 2 { 'test' } |
| 13 | 5 | else { '' } |
| 14 | vlib/v/checker/tests/match_undefined_cond.vv:4:3: error: cannot match `void` with `int literal` |
| 15 | 2 | res := match asd { |
| 16 | 3 | 1 { 'foo' } |
| 17 | 4 | 2 { 'test' } |
| 18 | | ^ |
| 19 | 5 | else { '' } |
| 20 | 6 | } |
| 21 |