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

checker: fix nested if smartcast selector exprs (fix #10372 #10379) (#10502)

This commit is contained in:
yuyi
2021-06-18 19:49:15 +08:00
committed by GitHub
parent 05f0f3e180
commit 2298063129
6 changed files with 50 additions and 16 deletions

View File

@@ -1993,9 +1993,9 @@ fn (t Tree) array_node_attr(nodes []ast.Attr) &Node {
return arr
}
fn (t Tree) array_node_scope_struct_field(nodes []ast.ScopeStructField) &Node {
fn (t Tree) array_node_scope_struct_field(nodes map[string]ast.ScopeStructField) &Node {
mut arr := new_array()
for node in nodes {
for _, node in nodes {
arr.add_item(t.scope_struct_field(node))
}
return arr