don't store the scope for routines

This commit is contained in:
Araq 2015-04-03 17:08:08 +02:00
commit f767e1749e
4 changed files with 11 additions and 10 deletions

View file

@ -101,7 +101,8 @@ proc initCandidate*(ctx: PContext, c: var TCandidate, callee: PSym,
if callee.originatingModule == ctx.module:
let rootSym = if sfFromGeneric notin callee.flags: callee
else: callee.owner
c.calleeScope = rootSym.scope.depthLevel
c.calleeScope = 2 # rootSym.scope.depthLevel
#echo "SCOPE IS ", rootSym.scope.depthLevel
else:
c.calleeScope = 1
else: