Skip to content

Commit 1b16557

Browse files
committed
change 2
1 parent 8a65141 commit 1b16557

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,23 @@ class SpecializeApplyMethods extends MiniPhase with InfoTransformer {
6363

6464
/** Add symbols for specialized methods to FunctionN */
6565
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
8383

8484
case _ => tp
8585
}

0 commit comments

Comments
 (0)