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 f26e981 commit 674d375Copy full SHA for 674d375
compiler/src/dotty/tools/dotc/transform/SpecializeFunctions.scala
@@ -109,7 +109,7 @@ class SpecializeFunctions extends MiniPhase with InfoTransformer {
109
/** Dispatch to specialized `apply`s in user code when available */
110
override def transformApply(tree: Apply)(using Context) =
111
tree match {
112
- case Apply(fun, args) if fun.symbol.name == nme.apply =>
+ case Apply(fun: NameTree, args) if fun.name == nme.apply && args.size <= 3 =>
113
val argTypes = fun.tpe.widen.firstParamTypes.map(_.widenSingleton.dealias)
114
val retType = tree.tpe.widenSingleton.dealias
115
val isSpecializable =
0 commit comments