From 2cde18ca7d56d5332434810c2752858b8e1c0176 Mon Sep 17 00:00:00 2001 From: metagn Date: Fri, 1 Nov 2024 15:18:22 +0300 Subject: [PATCH] Update compiler/semstmts.nim --- compiler/semstmts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 1bb95edcff..fe8fc0956e 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -2622,7 +2622,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind, proc determineType(c: PContext, s: PSym) = if s.typ != nil: return #if s.magic != mNone: return - if s.ast.isNil: + if s.ast.isNil and sfForward notin s.flags: globalError(c.config, s.info, errIllFormedAstX, "symbol of kind " & $s.kind) discard semProcAux(c, s.ast, s.kind, {})