diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-25 12:18:34 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-25 12:18:34 +0100 |
commit | 27a508c50482f4053591ed740f09ecced5bf749b (patch) | |
tree | 936cf263cc1236bb308cc786c0f7ee0cdc0f2fa8 /src/dotty/tools/dotc/core/Scopes.scala | |
parent | 4a17f0d1e17adecbdc4755bf719feff18d115318 (diff) | |
download | dotty-27a508c50482f4053591ed740f09ecced5bf749b.tar.gz dotty-27a508c50482f4053591ed740f09ecced5bf749b.tar.bz2 dotty-27a508c50482f4053591ed740f09ecced5bf749b.zip |
More fixes for classfile reading.
In particular: Survive malformed type errors. Make trees cloneable. and others more.
Diffstat (limited to 'src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Scopes.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Scopes.scala b/src/dotty/tools/dotc/core/Scopes.scala index d39194bf1..85104f30f 100644 --- a/src/dotty/tools/dotc/core/Scopes.scala +++ b/src/dotty/tools/dotc/core/Scopes.scala @@ -167,7 +167,8 @@ object Scopes { /** enter a symbol in this scope. */ final def enter[T <: Symbol](sym: T)(implicit ctx: Context): T = { if (sym.isType) { - assert(lookup(sym.name) == NoSymbol, sym.debugString) // !!! DEBUG + assert(lookup(sym.name) == NoSymbol, + s"duplicate type ${sym.debugString}; previous was ${lookup(sym.name).debugString}") // !!! DEBUG } newScopeEntry(sym) sym |