diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semstmts.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 3acd00065..efe5c9217 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -914,12 +914,13 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind, if sfNoForward in c.module.flags and sfSystemModule notin c.module.flags: addInterfaceOverloadableSymAt(c, c.currentScope, s) + s.flags.incl sfForward return else: s = n[namePos].sym typeIsDetermined = s.typ == nil - if typeIsDetermined: assert phase == stepCompileBody - else: assert phase == stepDetermineType + # if typeIsDetermined: assert phase == stepCompileBody + # else: assert phase == stepDetermineType # before compiling the proc body, set as current the scope # where the proc was declared let oldScope = c.currentScope |