summary refs log tree commit diff stats
path: root/compiler/sem.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-05-12 02:01:16 +0300
committerZahary Karadjov <zahary@gmail.com>2013-05-12 02:01:16 +0300
commitaf081f995e41f052c63ad5468fbf00bb860de474 (patch)
treedb1d53911c01f494fcc4af5e51ce95091d800e96 /compiler/sem.nim
parent7a2b1a7520bb80cbef88ad9c3dc843cbe512a588 (diff)
downloadNim-af081f995e41f052c63ad5468fbf00bb860de474.tar.gz
get rid of TOverloadIter.stackPtr
Diffstat (limited to 'compiler/sem.nim')
-rw-r--r--compiler/sem.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sem.nim b/compiler/sem.nim
index ff5e3d540..21ba64a85 100644
--- a/compiler/sem.nim
+++ b/compiler/sem.nim
@@ -282,6 +282,7 @@ proc RecoverContext(c: PContext) =
   # faster than wrapping every stack operation in a 'try finally' block and 
   # requires far less code.
   c.currentScope = c.topLevelScope
+  c.scopeDepth = 2 # importTable and top-level scope
   while getCurrOwner().kind != skModule: popOwner()
   while c.p != nil and c.p.owner.kind != skModule: c.p = c.p.next