From 1526e29e6b86cfa1c4d66cb76048637fbc78ac62 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 22 Dec 2025 11:56:35 +0100 Subject: [PATCH] bugfix --- compiler/ast2nif.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ast2nif.nim b/compiler/ast2nif.nim index 9902f542c0..4882a1f4f1 100644 --- a/compiler/ast2nif.nim +++ b/compiler/ast2nif.nim @@ -532,7 +532,7 @@ proc writeNode(w: var Writer; dest: var TokenBuf; n: PNode; forAst = false) = addLocalSyms(w, n[i]) writeNode(w, dest, n[i], forAst) dec w.inProc - of nkProcDef, nkFuncDef, nkMethodDef, nkIteratorDef, nkConverterDef, nkMacroDef: + of nkProcDef, nkFuncDef, nkMethodDef, nkIteratorDef, nkConverterDef, nkMacroDef, nkTemplateDef: # For top-level named routines (not forAst), just write the symbol. # The full AST will be stored in the symbol's sdef. if not forAst and n[namePos].kind == nkSym: