From e341dca5784e3901923c726119c30143493ca062 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Thu, 7 Mar 2024 19:33:48 +0100 Subject: [PATCH] astrepr: Fix cyclicTreeAux ignoring sons for non-nkError nodes --- compiler/utils/astrepr.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/utils/astrepr.nim b/compiler/utils/astrepr.nim index 066ffc0887674..6709035d06222 100644 --- a/compiler/utils/astrepr.nim +++ b/compiler/utils/astrepr.nim @@ -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):