vxx2 / vlib / v / checker / tests / invalid_property.out
36 lines · 36 sloc · 1.04 KB · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/invalid_property.vv:2:7: error: `string` has no property `length`
2 1 | s := ''
3 2 | _ = s.length
4 | ~~~~~~
5 3 | _ = [1, 2].foo
6 4 |
7vlib/v/checker/tests/invalid_property.vv:2:3: error: assignment mismatch: 1 variable 0 values
8 1 | s := ''
9 2 | _ = s.length
10 | ^
11 3 | _ = [1, 2].foo
12 4 |
13vlib/v/checker/tests/invalid_property.vv:3:12: error: `[]int` has no property `foo`
14 1 | s := ''
15 2 | _ = s.length
16 3 | _ = [1, 2].foo
17 | ~~~
18 4 |
19 5 | mut fa := [3, 4]!
20vlib/v/checker/tests/invalid_property.vv:3:3: error: assignment mismatch: 1 variable 0 values
21 1 | s := ''
22 2 | _ = s.length
23 3 | _ = [1, 2].foo
24 | ^
25 4 |
26 5 | mut fa := [3, 4]!
27vlib/v/checker/tests/invalid_property.vv:6:8: error: `[2]int` has no property `bar`
28 4 |
29 5 | mut fa := [3, 4]!
30 6 | _ = fa.bar
31 | ~~~
32vlib/v/checker/tests/invalid_property.vv:6:3: error: assignment mismatch: 1 variable 0 values
33 4 |
34 5 | mut fa := [3, 4]!
35 6 | _ = fa.bar
36 | ^
37