checker: check assoc field exprs
parent
013fd5abfe
commit
6e5b58413a
|
@ -644,6 +644,9 @@ pub fn (c mut Checker) expr(node ast.Expr) table.Type {
|
||||||
var := scope.find_var(it.var_name) or {
|
var := scope.find_var(it.var_name) or {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
for i, _ in it.fields {
|
||||||
|
c.expr(it.exprs[i])
|
||||||
|
}
|
||||||
return var.typ
|
return var.typ
|
||||||
}
|
}
|
||||||
ast.BoolLiteral {
|
ast.BoolLiteral {
|
||||||
|
|
Loading…
Reference in New Issue