diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-23 12:02:32 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-23 12:02:32 +0100 |
commit | f73792d9c6a41c692cc689c52e481e15120bccc4 (patch) | |
tree | 683c0e622164f447430700505347ee4fbec31fee /src/dotty/tools/dotc/core/Scopes.scala | |
parent | b440606b0f0d1772d8a1c3bc1c36b3aa3cb576b5 (diff) | |
download | dotty-f73792d9c6a41c692cc689c52e481e15120bccc4.tar.gz dotty-f73792d9c6a41c692cc689c52e481e15120bccc4.tar.bz2 dotty-f73792d9c6a41c692cc689c52e481e15120bccc4.zip |
More fixes to classfile reading.
Most important one: Getting equality of NamedTypes right.
Diffstat (limited to 'src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Scopes.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Scopes.scala b/src/dotty/tools/dotc/core/Scopes.scala index 57d9446f1..f8147c8f0 100644 --- a/src/dotty/tools/dotc/core/Scopes.scala +++ b/src/dotty/tools/dotc/core/Scopes.scala @@ -169,7 +169,9 @@ 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 + if (sym.isType) { + assert(lookup(sym.name) == NoSymbol, sym.debugString) // !!! DEBUG + } newScopeEntry(sym) sym } |