From 1e25844f55a5dbb25bd33cd5b39668834352bab2 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:01:12 +0800 Subject: [PATCH] fixes --- compiler/ast.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ast.nim b/compiler/ast.nim index efb3ae909f..9708252f0e 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -1693,7 +1693,7 @@ proc copyNode*(src: PNode): PNode = template transitionNodeKindCommon(k: TNodeKind) = let obj {.inject.} = n[] - n[] = TNode(kind: k, typField: obj.typField, info: obj.info, flags: obj.flags) + n[] = TNode(kind: k, typField: n.typ, info: obj.info, flags: obj.flags) # n.comment = obj.comment # shouldn't be needed, the address doesnt' change when defined(useNodeIds): n.id = obj.id