summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-02-22 09:37:44 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-02-22 09:37:44 +0000
commit93498931b58dfe1cba008bdb1b16b2dd84ff90b7 (patch)
tree4ab5aa1c5c4319901011cd3ead6a3b602c22d69f /src/compiler
parentbe9a1788b58bdf3ba70e5a39fbab2a30c082ca27 (diff)
downloadscala-93498931b58dfe1cba008bdb1b16b2dd84ff90b7.tar.gz
scala-93498931b58dfe1cba008bdb1b16b2dd84ff90b7.tar.bz2
scala-93498931b58dfe1cba008bdb1b16b2dd84ff90b7.zip
Closes #4202 and removes empty TreeHashMap (sup...
Closes #4202 and removes empty TreeHashMap (superseded by HashMap implementation). No review
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/transform/Mixin.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Mixin.scala b/src/compiler/scala/tools/nsc/transform/Mixin.scala
index 14d814b55a..549f6f2abb 100644
--- a/src/compiler/scala/tools/nsc/transform/Mixin.scala
+++ b/src/compiler/scala/tools/nsc/transform/Mixin.scala
@@ -372,7 +372,8 @@ abstract class Mixin extends InfoTransform with ast.TreeDSL {
clazz.owner.info.decls enter sourceModule
}
sourceModule setInfo sym.tpe
- assert(clazz.sourceModule != NoSymbol,
+ // Companion module isn't visible for anonymous class at this point anyway
+ assert(clazz.sourceModule != NoSymbol || clazz.isAnonymousClass,
clazz + " has no sourceModule: sym = " + sym + " sym.tpe = " + sym.tpe)
parents1 = List()
decls1 = new Scope(decls.toList filter isImplementedStatically)