mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: add warning for s.$field.name without brackets (#8411)
This commit is contained in:
@ -13,7 +13,7 @@ fn test<T>() {
|
||||
t.name = '2'
|
||||
$for f in T.fields {
|
||||
$if f.typ is string {
|
||||
println(t.$f.name)
|
||||
println(t.$(f.name))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user