diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-25 22:35:18 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-25 22:35:18 +0100 |
commit | 30a587d46df65825dd3fd164f35aa27cc91c633e (patch) | |
tree | 82a13c37d05b1045d9865aec4fa7ff238f7ede4b /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 657033fd8df0333c4df7c5881512e034571c2de1 (diff) | |
download | dotty-30a587d46df65825dd3fd164f35aa27cc91c633e.tar.gz dotty-30a587d46df65825dd3fd164f35aa27cc91c633e.tar.bz2 dotty-30a587d46df65825dd3fd164f35aa27cc91c633e.zip |
Fixing a bug which arose for class denotations that were absent.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 825dd5544..8f4a8cb57 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -853,6 +853,7 @@ object SymDenotations { } final override def derivesFrom(base: Symbol)(implicit ctx: Context): Boolean = + !isAbsent && base.isClass && ( (symbol eq base) || (superClassBits contains base.superId) |