@@ -22,7 +22,7 @@ class SpecializedApplyMethods extends MiniPhase with InfoTransformer {
22
22
23
23
val phaseName = " specializedApplyMethods"
24
24
25
- private def specApply (sym : Symbol , args : List [Type ], ret : Type )(using Context ): Symbol = {
25
+ private def specApplySymbol (sym : Symbol , args : List [Type ], ret : Type )(using Context ): Symbol = {
26
26
val name = nme.apply.specializedFunction(ret, args)
27
27
newSymbol(sym, name, Flags .Method , MethodType (args, ret))
28
28
}
@@ -55,17 +55,17 @@ class SpecializedApplyMethods extends MiniPhase with InfoTransformer {
55
55
sym.name.functionArity match {
56
56
case 0 =>
57
57
val scope = tp.decls.cloneScope
58
- specFun0 { r => scope.enter(specApply (sym, Nil , r)) }
58
+ specFun0 { r => scope.enter(specApplySymbol (sym, Nil , r)) }
59
59
tp.derivedClassInfo(decls = scope)
60
60
61
61
case 1 =>
62
62
val scope = tp.decls.cloneScope
63
- specFun1 { (t1, r) => scope.enter(specApply (sym, List (t1), r)) }
63
+ specFun1 { (t1, r) => scope.enter(specApplySymbol (sym, List (t1), r)) }
64
64
tp.derivedClassInfo(decls = scope)
65
65
66
66
case 2 =>
67
67
val scope = tp.decls.cloneScope
68
- specFun2 { (t1, t2, r) => scope.enter(specApply (sym, List (t1, t2), r)) }
68
+ specFun2 { (t1, t2, r) => scope.enter(specApplySymbol (sym, List (t1, t2), r)) }
69
69
tp.derivedClassInfo(decls = scope)
70
70
71
71
case _ =>
0 commit comments