From 2009df72cb285e5a669baf3630334633cb881283 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 7 Oct 2021 12:01:06 +0200 Subject: [PATCH] fixes a 'mixin' statement handling regression [backport:1.2] (#18968) (cherry picked from commit 8eef55715725a9dba2ff0afbdbb564383f3a29a6) --- compiler/semtempl.nim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index dedea2e995..d5d9196fb3 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -106,9 +106,15 @@ proc semBindStmt(c: PContext, n: PNode, toBind: var IntSet): PNode = result = newNodeI(nkEmpty, n.info) proc semMixinStmt(c: PContext, n: PNode, toMixin: var IntSet): PNode = + result = copyNode(n) + var count = 0 for i in 0..