diff options
author | Martin Odersky <odersky@gmail.com> | 2013-08-24 11:21:39 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-08-24 11:21:39 +0200 |
commit | f194e40eacf9c03fa362565f10e5bbb617cb9a84 (patch) | |
tree | dee3a4510c8c2c22d7700ad42fb787619ee47861 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 922717bd8a1ae60ddd48be2248f0c6d49fb44763 (diff) | |
download | dotty-f194e40eacf9c03fa362565f10e5bbb617cb9a84.tar.gz dotty-f194e40eacf9c03fa362565f10e5bbb617cb9a84.tar.bz2 dotty-f194e40eacf9c03fa362565f10e5bbb617cb9a84.zip |
Review of all deompositions of NamedType
Avoid using symbols that might not exist when doing that.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 06544d0ed..88a52fa12 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -950,7 +950,7 @@ object SymDenotations { val subcls = tp.symbol if (subcls eq symbol) tp - else (subcls.denot) match { + else subcls.denot match { case cdenot: ClassDenotation => if (cdenot.superClassBits contains symbol.superId) foldGlb(NoType, tp.parents) else NoType |