checker: check assoc field exprs

pull/4072/head
Joe Conigliaro 2020-03-19 18:57:33 +11:00
parent 013fd5abfe
commit 6e5b58413a
1 changed files with 3 additions and 0 deletions

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 {