@@ -1135,11 +1135,11 @@ object Types {
11351135 def select (name : Name )(implicit ctx : Context ): Type =
11361136 NamedType (this , name, member(name)).reduceProjection
11371137
1138- /** The type <this . name> , reduced if possible, with given denotation if unreduced */
1139- def select (name : Name , denot : Denotation )(implicit ctx : Context ): Type = // ### drop name
1138+ /** The type <this . name> with given denotation, reduced if possible. */
1139+ def select (name : Name , denot : Denotation )(implicit ctx : Context ): Type =
11401140 NamedType (this , name, denot).reduceProjection
11411141
1142- /** The type <this . name> with either ` sym` or its signed name as designator , reduced if possible */
1142+ /** The type <this . sym> , reduced if possible */
11431143 def select (sym : Symbol )(implicit ctx : Context ): Type =
11441144 NamedType (this , sym).reduceProjection
11451145
@@ -1609,9 +1609,6 @@ object Types {
16091609 else symbol
16101610 }
16111611
1612- private def lastKnownSymbol = // ### always combine with initial?
1613- if (lastDenotation != null ) lastDenotation.symbol else NoSymbol
1614-
16151612 def info (implicit ctx : Context ): Type = denot.info
16161613
16171614 /** The denotation currently denoted by this type */
@@ -1722,7 +1719,7 @@ object Types {
17221719 else d
17231720 }
17241721
1725- private [dotc] final def setDenot (denot : Denotation )(implicit ctx : Context ): Unit = { // ### make private? (also others)
1722+ private def setDenot (denot : Denotation )(implicit ctx : Context ): Unit = { // ### make private? (also others)
17261723 if (ctx.isAfterTyper)
17271724 assert(! denot.isOverloaded, this )
17281725 if (Config .checkNoDoubleBindings)
@@ -1901,11 +1898,6 @@ object Types {
19011898 case _ => withPrefix(prefix)
19021899 }
19031900
1904- private [dotc] final def invalidateDenot ()(implicit ctx : Context ): Unit = {
1905- lastDenotation = null
1906- lastSymbol = null
1907- }
1908-
19091901 private [dotc] final def withSym (sym : Symbol )(implicit ctx : Context ): ThisType =
19101902 if ((designator ne sym) && sym.exists) NamedType (prefix, sym).asInstanceOf [ThisType ]
19111903 else this
0 commit comments