v2 / vlib / v / checker / tests / match_undefined_cond.out
20 lines · 20 sloc · 712 bytes · b85782b7e7893480e3b193fe67e7404667394290
Raw
1vlib/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' }
7vlib/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 { '' }
14vlib/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