mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-15 16:13:45 +00:00
Update compiler/semstmts.nim
This commit is contained in:
@@ -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, {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user