From b791ef8e586d86af68f1212c9abecc22bb2d4de1 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 24 Mar 2013 00:26:30 +0100 Subject: Fixes fingerprint problems. Also reducing debug output. Can now read and display all classes and objects in scala.collection. --- src/dotty/tools/dotc/core/TypeOps.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/core/TypeOps.scala') diff --git a/src/dotty/tools/dotc/core/TypeOps.scala b/src/dotty/tools/dotc/core/TypeOps.scala index c19b0e387..847fb0ebd 100644 --- a/src/dotty/tools/dotc/core/TypeOps.scala +++ b/src/dotty/tools/dotc/core/TypeOps.scala @@ -165,7 +165,7 @@ trait TypeOps { this: Context => * to a list of typerefs, by converting all refinements to member * definitions in scope `decls`. Can add members to `decls` as a side-effect. */ - def normalizeToRefs(parents: List[Type], cls: ClassSymbol, decls: MutableScope /*@@@*/): List[TypeRef] = { + def normalizeToRefs(parents: List[Type], cls: ClassSymbol, decls: Scope): List[TypeRef] = { // println(s"normalizing $parents of $cls in ${cls.owner}") // !!! DEBUG var refinements = Map[TypeName, Type]() var formals = Map[TypeName, Symbol]() @@ -190,7 +190,7 @@ trait TypeOps { this: Context => assert(decls.lookup(name) == NoSymbol, // DEBUG s"redefinition of ${decls.lookup(name).debugString} in ${cls.showLocated}") val sym = ctx.newSymbol(cls, name, formal.flags & RetainedTypeArgFlags, bounds) - decls.enter(sym) // @@@ cls.enter(sym, decls) + cls.enter(sym, decls) } parentRefs } -- cgit v1.2.3