1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check assoc field exprs

This commit is contained in:
Joe Conigliaro 2020-03-19 18:57:33 +11:00
parent 013fd5abfe
commit 6e5b58413a

View File

@ -644,6 +644,9 @@ pub fn (c mut Checker) expr(node ast.Expr) table.Type {
var := scope.find_var(it.var_name) or {
panic(err)
}
for i, _ in it.fields {
c.expr(it.exprs[i])
}
return var.typ
}
ast.BoolLiteral {