Skip to content

Commit

Permalink
fixes bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Aug 17, 2022
1 parent e98b3ca commit 6041db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/semmagic.nim
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ proc addDefaultFieldForNew(c: PContext, n: PNode): PNode =
break
t = skipTypes(base, skipPtrs)

if asgnExpr.sons.len > 0:
if asgnExpr.sons.len > 1:
result = newTree(nkAsgn, result[1], asgnExpr)

proc magicsAfterOverloadResolution(c: PContext, n: PNode,
Expand Down

0 comments on commit 6041db3

Please sign in to comment.