2021-01-30 12:56:10 +01:00
|
|
|
vlib/v/checker/tests/comptime_field_selector_not_name_err.vv:10:8: error: expected `string` instead of `FieldData` (e.g. `field.name`)
|
2021-01-05 15:11:43 +01:00
|
|
|
8 | $for f in T.fields {
|
|
|
|
9 | $if f.typ is string {
|
2021-01-30 12:56:10 +01:00
|
|
|
10 | t.$(f) = '3'
|
|
|
|
| ^
|
2021-01-29 00:45:00 +01:00
|
|
|
11 | fv := Foo{}
|
2021-01-30 12:56:10 +01:00
|
|
|
12 | _ = t.$(fv.name)
|
|
|
|
vlib/v/checker/tests/comptime_field_selector_not_name_err.vv:12:12: error: unknown `$for` variable `fv`
|
|
|
|
10 | t.$(f) = '3'
|
2021-01-29 00:45:00 +01:00
|
|
|
11 | fv := Foo{}
|
2021-01-30 12:56:10 +01:00
|
|
|
12 | _ = t.$(fv.name)
|
|
|
|
| ~~
|
2021-01-29 00:45:00 +01:00
|
|
|
13 | }
|
|
|
|
14 | }
|
2021-02-26 15:26:50 +01:00
|
|
|
vlib/v/checker/tests/comptime_field_selector_not_name_err.vv:15:10: error: undefined ident: `f`
|
2021-01-29 00:45:00 +01:00
|
|
|
13 | }
|
|
|
|
14 | }
|
2021-01-30 12:56:10 +01:00
|
|
|
15 | _ = t.$(f.name)
|
|
|
|
| ^
|
2021-01-29 00:45:00 +01:00
|
|
|
16 | }
|
|
|
|
17 |
|