mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: cleanup in check_undefined_variables() (#13496)
This commit is contained in:
parent
901a4d8b84
commit
4f9039991f
@ -86,8 +86,7 @@ fn (mut p Parser) check_undefined_variables(exprs []ast.Expr, val ast.Expr) ? {
|
||||
}
|
||||
}
|
||||
ast.StructInit {
|
||||
fields := val.fields.clone()
|
||||
for field in fields {
|
||||
for field in val.fields {
|
||||
p.check_undefined_variables(exprs, field.expr) ?
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user