1
0
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:
Nick Treleaven
2021-01-30 11:56:10 +00:00
committed by GitHub
parent 97cb7687a2
commit c0685eeefc
8 changed files with 30 additions and 33 deletions

View File

@ -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))
}
}
}