@@ -83,6 +83,7 @@ class Compiler {
83
83
new InterceptedMethods , // Special handling of `==`, `|=`, `getClass` methods
84
84
new Getters , // Replace non-private vals and vars with getter defs (fields are added later)
85
85
new ElimByName , // Expand by-name parameter references
86
+ new LiftTry , // Put try expressions that might execute on non-empty stacks into their own methods
86
87
new CollectNullableFields , // Collect fields that can be nulled out after use in lazy initialization
87
88
new ElimOuterSelect , // Expand outer selections
88
89
new AugmentScala2Traits , // Augments Scala2 traits with additional members needed for mixin composition.
@@ -105,8 +106,7 @@ class Compiler {
105
106
// Note: constructors changes decls in transformTemplate, no InfoTransformers should be added after it
106
107
new FunctionalInterfaces , // Rewrites closures to implement @specialized types of Functions.
107
108
new Instrumentation , // Count closure allocations under -Yinstrument-closures
108
- new GetClass , // Rewrites getClass calls on primitive types.
109
- new LiftTry ) :: // Put try expressions that might execute on non-empty stacks into their own methods their implementations
109
+ new GetClass ) :: // Rewrites getClass calls on primitive types.
110
110
List (new LinkScala2Impls , // Redirect calls to trait methods defined by Scala 2.x, so that they now go to
111
111
new LambdaLift , // Lifts out nested functions to class scope, storing free variables in environments
112
112
// Note: in this mini-phase block scopes are incorrect. No phases that rely on scopes should be here
0 commit comments