diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index 43c52f1dfd..c515a1db77 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -232,6 +232,9 @@ trait Namers { self: Analyzer => (currentRun.canRedefine(m) || (m hasFlag SYNTHETIC))) { updatePosFlags(m, tree.pos, moduleFlags) setPrivateWithin(tree, m, tree.mods) + if (m.moduleClass != NoSymbol) + setPrivateWithin(tree, m.moduleClass, tree.mods) + context.unit.synthetics -= m } else { m = context.owner.newModule(tree.pos, tree.name) |