aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-08-24 11:21:39 +0200
committerMartin Odersky <odersky@gmail.com>2013-08-24 11:21:39 +0200
commitf194e40eacf9c03fa362565f10e5bbb617cb9a84 (patch)
treedee3a4510c8c2c22d7700ad42fb787619ee47861 /src/dotty/tools/dotc/core/SymDenotations.scala
parent922717bd8a1ae60ddd48be2248f0c6d49fb44763 (diff)
downloaddotty-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.scala2
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