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 d9a61d9 commit 8fbf771Copy full SHA for 8fbf771
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