diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-20 13:25:57 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-10-20 13:25:57 +0000 |
commit | 7a4b4c7a97b0b9417a82bc03ecac31ffe16cf40c (patch) | |
tree | dc6e88a5afb170bb6f98de2abbfd1666cae50b63 /src/compiler | |
parent | 842ec522a2b8bb4fa9161c595f36efe502b9a1e0 (diff) | |
download | scala-7a4b4c7a97b0b9417a82bc03ecac31ffe16cf40c.tar.gz scala-7a4b4c7a97b0b9417a82bc03ecac31ffe16cf40c.tar.bz2 scala-7a4b4c7a97b0b9417a82bc03ecac31ffe16cf40c.zip |
msil doesn't run flatten, so it is possible to ...
msil doesn't run flatten, so it is possible to have nested classes in
mixin. fixes msil build. review by rytz
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Symbols.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala index 810c0d4f83..693d188a7a 100644 --- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala +++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala @@ -1264,7 +1264,7 @@ trait Symbols extends reflect.generic.Symbols { self: SymbolTable => * symbol has already been checked to be a class (using `isClass`). * After refchecks nested objects get transformed to lazy vals so we filter on LAZY flag*/ private final def companionModule0: Symbol = { - val f = if (phase.refChecked && isNestedClass) LAZY else MODULE + val f = if (phase.refChecked && isNestedClass && !forMSIL) LAZY else MODULE flatOwnerInfo.decl(name.toTermName).suchThat( sym => (sym hasFlag f) && (sym isCoDefinedWith this)) } |