File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,9 +185,9 @@ object Types {
185
185
* - XYX.Any if XYZ extends scala.Phantom and this type is upper bounded XYZ.Any
186
186
* - scala.Any otherwise
187
187
*/
188
- final def topType (implicit ctx : Context ): TypeRef = {
188
+ final def topType (implicit ctx : Context ): Type = {
189
189
val lattice = phantomLatticeType
190
- if (lattice.exists) lattice.select(tpnme.Any ). asInstanceOf [ TypeRef ]
190
+ if (lattice.exists) lattice.select(tpnme.Any )
191
191
else defn.AnyType
192
192
}
193
193
@@ -197,7 +197,7 @@ object Types {
197
197
*/
198
198
final def bottomType (implicit ctx : Context ): Type = {
199
199
val lattice = phantomLatticeType
200
- if (lattice.exists) lattice.select(tpnme.Nothing ). asInstanceOf [ TypeRef ]
200
+ if (lattice.exists) lattice.select(tpnme.Nothing )
201
201
else defn.NothingType
202
202
}
203
203
You can’t perform that action at this time.
0 commit comments