fix 5756
This commit is contained in:
parent
622100adb6
commit
2a34552596
2 changed files with 40 additions and 1 deletions
|
|
@ -2203,7 +2203,7 @@ proc getNullValueAux(p: BProc; obj, cons: PNode, result: var Rope) =
|
|||
let field = obj.sym
|
||||
for i in 1..<cons.len:
|
||||
if cons[i].kind == nkExprColonExpr:
|
||||
if cons[i][0].sym == field:
|
||||
if cons[i][0].sym.name == field.name:
|
||||
result.add genConstExpr(p, cons[i][1])
|
||||
return
|
||||
elif i == field.position:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue