Fixed #1172 (for real)
This commit is contained in:
parent
cbe25a41b0
commit
93fa75bb07
6 changed files with 28 additions and 13 deletions
|
|
@ -52,7 +52,7 @@ type
|
|||
importTable*: PScope # scope for all imported symbols
|
||||
topLevelScope*: PScope # scope for all top-level symbols
|
||||
p*: PProcCon # procedure context
|
||||
friendModule*: PSym # current friend module; may access private data;
|
||||
friendModules*: seq[PSym] # friend modules; may access private data;
|
||||
# this is used so that generic instantiations
|
||||
# can access private object fields
|
||||
instCounter*: int # to prevent endless instantiations
|
||||
|
|
@ -168,7 +168,7 @@ proc newContext(module: PSym): PContext =
|
|||
initLinkedList(result.libs)
|
||||
append(result.optionStack, newOptionEntry())
|
||||
result.module = module
|
||||
result.friendModule = module
|
||||
result.friendModules = @[module]
|
||||
result.converters = @[]
|
||||
result.patterns = @[]
|
||||
result.includedFiles = initIntSet()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue