Skip to content

Commit b80fe59

Browse files
committed
change 1
1 parent 7e3ec29 commit b80fe59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Compiler {
8585
new SeqLiterals, // Express vararg arguments as arrays
8686
new InterceptedMethods, // Special handling of `==`, `|=`, `getClass` methods
8787
new Getters, // Replace non-private vals and vars with getter defs (fields are added later)
88-
new SpecializeFunctions, // Specialized Function{0,1,2} by replacing super with specialized super
88+
// new SpecializeFunctions, // Specialized Function{0,1,2} by replacing super with specialized super
8989
new LiftTry, // Put try expressions that might execute on non-empty stacks into their own methods
9090
new CollectNullableFields, // Collect fields that can be nulled out after use in lazy initialization
9191
new ElimOuterSelect, // Expand outer selections

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ class SpecializeApplyMethods extends MiniPhase with InfoTransformer {
8585
}
8686

8787
/** Create bridge methods for FunctionN with specialized applys */
88-
override def transformTemplate(tree: Template)(using Context) = {
88+
// override def transformTemplate(tree: Template)(using Context) = {
89+
def transformTemplate1(tree: Template)(using Context) = {
8990
val cls = tree.symbol.owner.asClass
9091

9192
def synthesizeApply(names: collection.Set[TermName]): Tree = {

0 commit comments

Comments
 (0)