We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02ff089 commit 1124199Copy full SHA for 1124199
compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -1635,6 +1635,7 @@ class Definitions {
1635
case List(x) => Tuple1SpecializedParamClasses().contains(x.classSymbol)
1636
case List(x, y) => Tuple2SpecializedParamClasses().contains(x.classSymbol) && Tuple2SpecializedParamClasses().contains(y.classSymbol)
1637
case _ => false
1638
+ && base.owner.denot.info.member(base.name.specializedName(args)).exists // when dotc compiles the stdlib there are no specialised classes
1639
1640
def isSpecializableFunction(cls: ClassSymbol, paramTypes: List[Type], retType: Type)(using Context): Boolean =
1641
paramTypes.length <= 2
0 commit comments