Skip to content

Commit 12c87a6

Browse files
committed
Fix for compilation tests
1 parent 9e0f3fc commit 12c87a6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Phases.Phase
99
import transform.*
1010
import backend.jvm.{CollectSuperCalls, GenBCode}
1111
import localopt.{StringInterpolatorOpt, DropForMap}
12+
import dotty.tools.dotc.transform.EmptyPhase
1213

1314
/** The central class of the dotc compiler. The job of a compiler is to create
1415
* runs, which process given `phases` in a given `rootContext`.
@@ -108,8 +109,8 @@ class Compiler {
108109
new ParamForwarding, // Add forwarders for aliases of superclass parameters
109110
new TupleOptimizations, // Optimize generic operations on tuples
110111
new LetOverApply, // Lift blocks from receivers of applications
111-
new ArrayConstructors) :: // Intercept creation of (non-generic) arrays and intrinsify.
112-
List(new ErasurePreservation) :: //
112+
new ArrayConstructors, // Intercept creation of (non-generic) arrays and intrinsify.
113+
new ErasurePreservation) :: //
113114
List(new Erasure) :: // Rewrite types to JVM model, erasing all type parameters, abstract types and refinements.
114115
List(new ElimErasedValueType, // Expand erased value types to their underlying implementation types
115116
new PureStats, // Remove pure stats from blocks

compiler/src/dotty/tools/dotc/transform/ErasurePreservation.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ import core.Types.*
1414
import core.Names.*
1515
import core.Constants.*
1616
import core.Decorators.*
17-
import typer.NoChecking
1817
import ast.{tpd, untpd}
1918
import reporting.*
2019
import dotty.tools.dotc.transform.MegaPhase.MiniPhase
2120
import dotty.tools.dotc.util.Property
22-
import dotty.tools.dotc.cc.pathOwner
2321
import scala.annotation.tailrec
2422

2523
class ErasurePreservation extends MiniPhase {

0 commit comments

Comments
 (0)