Skip to content

Commit e73508e

Browse files
committed
Some polishings
1 parent 71f9efb commit e73508e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,6 @@ class TypeErasure(isJava: Boolean, semiEraseVCs: Boolean, isConstructor: Boolean
484484
// constructor method should not be semi-erased.
485485
else if (isConstructor && isDerivedValueClass(sym)) eraseNormalClassRef(tp)
486486
else this(tp)
487-
case RefinedType(parent, _, _) if !(parent isRef defn.ArrayClass) => // @!!!
488-
eraseResult(parent)
489487
case AppliedType(tycon, _) if !(tycon isRef defn.ArrayClass) =>
490488
eraseResult(tycon)
491489
case _ =>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ object Types {
11571157
/** The full parent types, including all type arguments */
11581158
def parents(implicit ctx: Context): List[Type] = this match {
11591159
case tp @ AppliedType(tycon, args) if tycon.typeSymbol.isClass =>
1160-
tycon.parents.map(_.subst(tycon.typeSymbol.typeParams, args)) // @!!! cache?
1160+
tycon.parents.map(_.subst(tycon.typeSymbol.typeParams, args))
11611161
case tp: TypeRef =>
11621162
if (tp.info.isInstanceOf[TempClassInfo]) {
11631163
tp.reloadDenot()

0 commit comments

Comments
 (0)