summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-02-12 15:25:38 +0000
committerMartin Odersky <odersky@gmail.com>2008-02-12 15:25:38 +0000
commitc9861cd1980642e299c7fefa496878bcc573d7a8 (patch)
tree9ee21ce87a05ad8d379f0581d48cab62c902f93b /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parenta3dcb88cada2394337db422d9662bff97adb968c (diff)
downloadscala-c9861cd1980642e299c7fefa496878bcc573d7a8.tar.gz
scala-c9861cd1980642e299c7fefa496878bcc573d7a8.tar.bz2
scala-c9861cd1980642e299c7fefa496878bcc573d7a8.zip
refinement of sbaz fix; fixed #419
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index 34ba460f90..a4f70e7c15 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -230,7 +230,7 @@ trait Namers { self: Analyzer =>
(!currentRun.compiles(m) || (m hasFlag SYNTHETIC))) {
updatePosFlags(m, tree.pos, moduleFlags)
setPrivateWithin(tree, m, tree.mods)
- synthetics -= m
+ context.unit.synthetics -= m
} else {
m = context.owner.newModule(tree.pos, tree.name)
m.setFlag(moduleFlags)
@@ -392,7 +392,7 @@ trait Namers { self: Analyzer =>
def enterSyntheticSym(tree: Tree): Symbol = {
enterSym(tree)
- synthetics(tree.symbol) = (tree, context.unit.source)
+ context.unit.synthetics(tree.symbol) = tree
tree.symbol
}