From 7a4b4c7a97b0b9417a82bc03ecac31ffe16cf40c Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Wed, 20 Oct 2010 13:25:57 +0000 Subject: 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 --- src/compiler/scala/tools/nsc/symtab/Symbols.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler') 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)) } -- cgit v1.2.3