@@ -63,23 +63,23 @@ class SpecializeApplyMethods extends MiniPhase with InfoTransformer {
63
63
64
64
/** Add symbols for specialized methods to FunctionN */
65
65
override def transformInfo (tp : Type , sym : Symbol )(using Context ) = tp match {
66
- case tp : ClassInfo =>
67
- if sym == defn.SpecializableFunctions (0 ) then
68
- val scope = tp.decls.cloneScope
69
- specFun0 { r => scope.enter(specApplySymbol(sym, Nil , r)) }
70
- tp.derivedClassInfo(decls = scope)
71
-
72
- else if sym == defn.SpecializableFunctions (1 ) then
73
- val scope = tp.decls.cloneScope
74
- specFun1 { (t1, r) => scope.enter(specApplySymbol(sym, List (t1), r)) }
75
- tp.derivedClassInfo(decls = scope)
76
-
77
- else if sym == defn.SpecializableFunctions (2 ) then
78
- val scope = tp.decls.cloneScope
79
- specFun2 { (t1, t2, r) => scope.enter(specApplySymbol(sym, List (t1, t2), r)) }
80
- tp.derivedClassInfo(decls = scope)
81
-
82
- else tp
66
+ // case tp: ClassInfo =>
67
+ // if sym == defn.SpecializableFunctions(0) then
68
+ // val scope = tp.decls.cloneScope
69
+ // specFun0 { r => scope.enter(specApplySymbol(sym, Nil, r)) }
70
+ // tp.derivedClassInfo(decls = scope)
71
+
72
+ // else if sym == defn.SpecializableFunctions(1) then
73
+ // val scope = tp.decls.cloneScope
74
+ // specFun1 { (t1, r) => scope.enter(specApplySymbol(sym, List(t1), r)) }
75
+ // tp.derivedClassInfo(decls = scope)
76
+
77
+ // else if sym == defn.SpecializableFunctions(2) then
78
+ // val scope = tp.decls.cloneScope
79
+ // specFun2 { (t1, t2, r) => scope.enter(specApplySymbol(sym, List(t1, t2), r)) }
80
+ // tp.derivedClassInfo(decls = scope)
81
+
82
+ // else tp
83
83
84
84
case _ => tp
85
85
}
0 commit comments