Skip to content

Commit c6fe778

Browse files
nicolasstuckiodersky
authored andcommitted
Code cleanup.
1 parent 4202b98 commit c6fe778

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ object Types {
185185
* - XYX.Any if XYZ extends scala.Phantom and this type is upper bounded XYZ.Any
186186
* - scala.Any otherwise
187187
*/
188-
final def topType(implicit ctx: Context): TypeRef = {
188+
final def topType(implicit ctx: Context): Type = {
189189
val lattice = phantomLatticeType
190-
if (lattice.exists) lattice.select(tpnme.Any).asInstanceOf[TypeRef]
190+
if (lattice.exists) lattice.select(tpnme.Any)
191191
else defn.AnyType
192192
}
193193

@@ -197,7 +197,7 @@ object Types {
197197
*/
198198
final def bottomType(implicit ctx: Context): Type = {
199199
val lattice = phantomLatticeType
200-
if (lattice.exists) lattice.select(tpnme.Nothing).asInstanceOf[TypeRef]
200+
if (lattice.exists) lattice.select(tpnme.Nothing)
201201
else defn.NothingType
202202
}
203203

0 commit comments

Comments
 (0)