Skip to content

Commit

Permalink
astrepr: Fix cyclicTreeAux ignoring sons for non-nkError nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber committed Mar 7, 2024
1 parent c06a88b commit e341dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/utils/astrepr.nim
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ proc cyclicTreeAux(n: PNode, visited: var seq[PNode], count: var int): bool =
of nkError:
@[n.diag.wrongNode]
else:
@[] # XXX: This is a bug!
n.sons

for nSon in sons:
if cyclicTreeAux(nSon, visited, count):
Expand Down

0 comments on commit e341dca

Please sign in to comment.