diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2014-06-03 00:22:44 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2014-06-03 00:22:44 +0200 |
commit | 0d65550abb7da0e4ee79c30ef3d4245e77f0af43 (patch) | |
tree | 2c80599ca1f8bd0b95e019c2052b3199e6746ca5 /compiler/semdata.nim | |
parent | cbe25a41b031ea8c36dce1b47c26fd7682e40a82 (diff) | |
parent | 93fa75bb07b11dfb5346d2598210bc10162ce804 (diff) | |
download | Nim-0d65550abb7da0e4ee79c30ef3d4245e77f0af43.tar.gz |
Merge pull request #1240 from Varriount/fix-1172
Fixed #1172 (for real)
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r-- | compiler/semdata.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim index 987a70a41..d2b2f90cd 100644 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -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() |