parser: cleanup in check_undefined_variables() (#13496)
parent
901a4d8b84
commit
4f9039991f
|
@ -86,8 +86,7 @@ fn (mut p Parser) check_undefined_variables(exprs []ast.Expr, val ast.Expr) ? {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ast.StructInit {
|
ast.StructInit {
|
||||||
fields := val.fields.clone()
|
for field in val.fields {
|
||||||
for field in fields {
|
|
||||||
p.check_undefined_variables(exprs, field.expr) ?
|
p.check_undefined_variables(exprs, field.expr) ?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue