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