@@ -84,6 +84,8 @@ class Compiler {
84
84
new ExplicitSelf , // Make references to non-trivial self types explicit as casts
85
85
new ElimByName , // Expand by-name parameter references
86
86
new StringInterpolatorOpt ) :: // Optimizes raw and s string interpolators by rewriting them to string concatenations
87
+ List (new PreRecheck ) ::
88
+ List (new CheckCaptures ) ::
87
89
List (new PruneErasedDefs , // Drop erased definitions from scopes and simplify erased expressions
88
90
new UninitializedDefs , // Replaces `compiletime.uninitialized` by `_`
89
91
new InlinePatterns , // Remove placeholders of inlined patterns
@@ -101,8 +103,6 @@ class Compiler {
101
103
new TupleOptimizations , // Optimize generic operations on tuples
102
104
new LetOverApply , // Lift blocks from receivers of applications
103
105
new ArrayConstructors ) :: // Intercept creation of (non-generic) arrays and intrinsify.
104
- List (new PreRecheck ) ::
105
- List (new CheckCaptures ) ::
106
106
List (new Erasure ) :: // Rewrite types to JVM model, erasing all type parameters, abstract types and refinements.
107
107
List (new ElimErasedValueType , // Expand erased value types to their underlying implmementation types
108
108
new PureStats , // Remove pure stats from blocks
0 commit comments