File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import Phases.Phase
99import transform .*
1010import backend .jvm .{CollectSuperCalls , GenBCode }
1111import 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
Original file line number Diff line number Diff line change @@ -14,12 +14,10 @@ import core.Types.*
1414import core .Names .*
1515import core .Constants .*
1616import core .Decorators .*
17- import typer .NoChecking
1817import ast .{tpd , untpd }
1918import reporting .*
2019import dotty .tools .dotc .transform .MegaPhase .MiniPhase
2120import dotty .tools .dotc .util .Property
22- import dotty .tools .dotc .cc .pathOwner
2321import scala .annotation .tailrec
2422
2523class ErasurePreservation extends MiniPhase {
You can’t perform that action at this time.
0 commit comments