@@ -62,7 +62,6 @@ class Compiler {
62
62
new ExtensionMethods , // Expand methods of value classes with extension methods
63
63
new ShortcutImplicits , // Allow implicit functions without creating closures
64
64
new ByNameClosures , // Expand arguments to by-name parameters to closures
65
- new LiftTry , // Put try expressions that might execute on non-empty stacks into their own methods
66
65
new HoistSuperArgs , // Hoist complex arguments of supercalls to enclosing scope
67
66
new ClassOf , // Expand `Predef.classOf` calls.
68
67
new RefChecks ) :: // Various checks mostly related to abstract members and overriding
@@ -97,9 +96,10 @@ class Compiler {
97
96
List (new Constructors , // Collect initialization code in primary constructors
98
97
// Note: constructors changes decls in transformTemplate, no InfoTransformers should be added after it
99
98
new FunctionalInterfaces , // Rewrites closures to implement @specialized types of Functions.
100
- new Instrumentation , // Count closure allocations under -Yinstrument-closures
101
- new GetClass ) :: // Rewrites getClass calls on primitive types.
102
- List (new LinkScala2Impls , // Redirect calls to trait methods defined by Scala 2.x, so that they now go to their implementations
99
+ new Instrumentation , // Count closure allocations under -Yinstrument-closures
100
+ new GetClass , // Rewrites getClass calls on primitive types.
101
+ new LiftTry ) :: // Put try expressions that might execute on non-empty stacks into their own methods their implementations
102
+ List (new LinkScala2Impls , // Redirect calls to trait methods defined by Scala 2.x, so that they now go to
103
103
new LambdaLift , // Lifts out nested functions to class scope, storing free variables in environments
104
104
// Note: in this mini-phase block scopes are incorrect. No phases that rely on scopes should be here
105
105
new ElimStaticThis ) :: // Replace `this` references to static objects by global identifiers
0 commit comments