don't store the scope for routines
This commit is contained in:
parent
3c54a4a438
commit
f767e1749e
4 changed files with 11 additions and 10 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue