Skip to content

Commit a7ec349

Browse files
committed
Some polishings
1 parent 922b379 commit a7ec349

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
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
@@ -1168,7 +1168,7 @@ object Types {
11681168
/** The full parent types, including all type arguments */
11691169
def parents(implicit ctx: Context): List[Type] = this match {
11701170
case tp @ AppliedType(tycon, args) if tycon.typeSymbol.isClass =>
1171-
tycon.parents.map(_.subst(tycon.typeSymbol.typeParams, args)) // @!!! cache?
1171+
tycon.parents.map(_.subst(tycon.typeSymbol.typeParams, args))
11721172
case tp: TypeRef =>
11731173
if (tp.info.isInstanceOf[TempClassInfo]) {
11741174
tp.reloadDenot()

tests/neg/customArgs/xfatalWarnings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object xfatalWarnings {
22
val opt:Option[String] = Some("test")
33

4-
opt match { // eror when running with -Xfatal-warnings
4+
opt match { // would give an error when running with -Xfatal-warnings
55
case None =>
66
}
77

0 commit comments

Comments
 (0)