From 38bd228dda0d5dc8e85e8c13060c08ffe7c64ca6 Mon Sep 17 00:00:00 2001 From: araq Date: Fri, 12 Dec 2025 08:32:22 +0100 Subject: [PATCH] critical bugfix --- compiler/ast2nif.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/ast2nif.nim b/compiler/ast2nif.nim index b17bf47fc5..a8e15ddfb2 100644 --- a/compiler/ast2nif.nim +++ b/compiler/ast2nif.nim @@ -1215,10 +1215,12 @@ proc loadNode(c: var DecodeContext; n: var Cursor; thisModule: string; inc n # skip `sd` tag loadSymFromCursor(c, sym, n, thisModule, localSyms) sym.state = Sealed # mark as fully loaded + result = newSymNode(sym, info) else: sym = c.loadSymStub(name.symId, thisModule, localSyms) skip n # skip the entire sdef for indexed symbols - result = newSymNode(sym, info) + result = newSymNode(sym, info) + result.flags.incl nfLazyType of typeDefTagName: raiseAssert "`td` tag in invalid context" of "none":