v2 / vlib / v / checker / tests / comptime_for.out
54 lines · 54 sloc · 1.8 KB · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/comptime_for.vv:2:7: warning: unused variable: `m`
2 1 | fn unknown() {
3 2 | $for m in Huh.methods {
4 | ^
5 3 | }
6 4 | $for f in Huh.fields {
7vlib/v/checker/tests/comptime_for.vv:4:7: warning: unused variable: `f`
8 2 | $for m in Huh.methods {
9 3 | }
10 4 | $for f in Huh.fields {
11 | ^
12 5 | }
13 6 | $for f in T.fields {
14vlib/v/checker/tests/comptime_for.vv:2:12: error: $for expects a type name or variable name to be used here, but Huh is not a type or variable name
15 1 | fn unknown() {
16 2 | $for m in Huh.methods {
17 | ~~~
18 3 | }
19 4 | $for f in Huh.fields {
20vlib/v/checker/tests/comptime_for.vv:4:12: error: $for expects a type name or variable name to be used here, but Huh is not a type or variable name
21 2 | $for m in Huh.methods {
22 3 | }
23 4 | $for f in Huh.fields {
24 | ~~~
25 5 | }
26 6 | $for f in T.fields {
27vlib/v/checker/tests/comptime_for.vv:6:12: error: $for expects a type name or variable name to be used here, but T is not a type or variable name
28 4 | $for f in Huh.fields {
29 5 | }
30 6 | $for f in T.fields {
31 | ^
32 7 | $if f.typ is Huh {
33 8 | }
34vlib/v/checker/tests/comptime_for.vv:12:6: error: undefined ident: `m`
35 10 | }
36 11 | }
37 12 | _ = m
38 | ^
39 13 | }
40 14 |
41vlib/v/checker/tests/comptime_for.vv:19:16: error: unknown type `U`
42 17 | $if f.typ is T {
43 18 | }
44 19 | $if f.typ is U {
45 | ^
46 20 | }
47 21 | }
48vlib/v/checker/tests/comptime_for.vv:22:6: error: undefined ident: `f`
49 20 | }
50 21 | }
51 22 | _ = f
52 | ^
53 23 | }
54 24 |
55