diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-24 00:26:30 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-24 00:26:30 +0100 |
commit | b791ef8e586d86af68f1212c9abecc22bb2d4de1 (patch) | |
tree | 2d66deb239c59a392129e42ba112532863ffbdaa /src/dotty/tools/dotc/core/TypeOps.scala | |
parent | 8ea3a4627c7dc66f65705ec9822c01a2225eacae (diff) | |
download | dotty-b791ef8e586d86af68f1212c9abecc22bb2d4de1.tar.gz dotty-b791ef8e586d86af68f1212c9abecc22bb2d4de1.tar.bz2 dotty-b791ef8e586d86af68f1212c9abecc22bb2d4de1.zip |
Fixes fingerprint problems.
Also reducing debug output. Can now read and display all classes and objects in scala.collection.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeOps.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/TypeOps.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |