From 1320e921ad6be95725ed8879ef6cbdb80ce9b795 Mon Sep 17 00:00:00 2001 From: Eugene Vigdorchik Date: Thu, 4 Nov 2010 17:25:53 +0000 Subject: Presentation compiler: not adapting to the new ... Presentation compiler: not adapting to the new symbol for ThisType for class syms causes false errors in Eclipse --- src/compiler/scala/tools/nsc/symtab/Types.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/scala/tools/nsc/symtab/Types.scala b/src/compiler/scala/tools/nsc/symtab/Types.scala index 96a7654c68..11f1385baa 100644 --- a/src/compiler/scala/tools/nsc/symtab/Types.scala +++ b/src/compiler/scala/tools/nsc/symtab/Types.scala @@ -3833,7 +3833,7 @@ A type's typeSymbol should never be inspected directly. } } def apply(tp: Type): Type = tp match { - case ThisType(sym) if (sym.isModuleClass) => + case ThisType(sym)/* if (sym.isModuleClass)*/ => val sym1 = adaptToNewRun(sym.owner.thisType, sym) if (sym1 == sym) tp else ThisType(sym1) case SingleType(pre, sym) => -- cgit v1.2.3