vxx2 / vlib / v / checker / tests / undefined_ident_of_struct.out
28 lines · 28 sloc · 731 bytes
Raw
1vlib/v/checker/tests/undefined_ident_of_struct.vv:4:2: error: undefined ident: `f`
2 2 |
3 3 | fn get() {
4 4 | f.a = 'test'
5 | ^
6 5 | }
7 6 |
8vlib/v/checker/tests/undefined_ident_of_struct.vv:4:4: error: `f` does not return a value
9 2 |
10 3 | fn get() {
11 4 | f.a = 'test'
12 | ^
13 5 | }
14 6 |
15vlib/v/checker/tests/undefined_ident_of_struct.vv:4:4: error: unexpected symbol `void`
16 2 |
17 3 | fn get() {
18 4 | f.a = 'test'
19 | ^
20 5 | }
21 6 |
22vlib/v/checker/tests/undefined_ident_of_struct.vv:4:8: error: cannot assign to `f.a`: expected `void`, not `string`
23 2 |
24 3 | fn get() {
25 4 | f.a = 'test'
26 | ~~~~~~
27 5 | }
28 6 |
29