Skip to content

Commit b40014a

Browse files
committed
Remove i966.scala test and corresponding code path
We can't compile this test with the 2.13 stdlib, and the only codepath it's supposed to exerce is currently dead code, I assume that the raw Array that showed up there was due to some bug that has since been fixed.
1 parent 1f960d4 commit b40014a

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ class TypeErasure(isJava: Boolean, semiEraseVCs: Boolean, isConstructor: Boolean
435435
val sym = tp.symbol
436436
if (!sym.isClass) this(tp.translucentSuperType)
437437
else if (semiEraseVCs && isDerivedValueClass(sym)) eraseDerivedValueClassRef(tp)
438-
else if (sym == defn.ArrayClass) apply(tp.appliedTo(TypeBounds.empty)) // i966 shows that we can hit a raw Array type.
439438
else if (defn.isSyntheticFunctionClass(sym)) defn.erasedFunctionType(sym)
440439
else eraseNormalClassRef(tp)
441440
case tp: AppliedType =>

tests/pos/i966.scala

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)