summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-18 05:39:18 +0000
committerPaul Phillips <paulp@improving.org>2010-02-18 05:39:18 +0000
commitcf2f9d7fbe4311b2373957b4bc78520984f4eafc (patch)
tree22eb59ce5078e1d591f7bbccf8c412a5019c27f8 /src/compiler
parentf83314aa82f5b5546ad19d2b037fc4cfb9af6826 (diff)
downloadscala-cf2f9d7fbe4311b2373957b4bc78520984f4eafc.tar.gz
scala-cf2f9d7fbe4311b2373957b4bc78520984f4eafc.tar.bz2
scala-cf2f9d7fbe4311b2373957b4bc78520984f4eafc.zip
Fix for recent stability issue with Apply0.
classpaths flushes out bugs, we should do this all the time. Review by odersky even though he authored it, because reliving one's own patches is the key to a long and healthy life.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala3
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)