diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-12 16:14:28 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-12 16:14:28 +0300 |
commit | 1d29d24465ddb9aaea18558f221ff67bf82db0c7 (patch) | |
tree | 8beb534b4a6f0fecd62b5d92ce9041cdf253798b /compiler | |
parent | 14b5d5f2622b8ed4625fc7c010be2b627381693d (diff) | |
download | Nim-1d29d24465ddb9aaea18558f221ff67bf82db0c7.tar.gz |
documented the ``noforward`` pragma
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 |