We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a086fd2 commit 0d7f14dCopy full SHA for 0d7f14d
compiler/src/dotty/tools/dotc/transform/SpecializeFunctions.scala
@@ -33,7 +33,7 @@ class SpecializeFunctions extends MiniPhase with InfoTransformer {
33
var arity = 0
34
while (arity < 3) {
35
val func = defn.FunctionClass(arity)
36
- if (sym.derivesFrom(func)) {
+ if (sym != func && sym.derivesFrom(func)) {
37
val baseType = tp.cls.typeRef.baseType(func)
38
val paramTypes = baseType.argInfos
39
val argTypes = paramTypes.init
0 commit comments