We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb34be5 commit 65f6dfaCopy full SHA for 65f6dfa
compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -1117,7 +1117,7 @@ class Definitions {
1117
case RefinedType(parent, nme.apply, mt: MethodOrPoly)
1118
if parent.derivesFrom(defn.PolyFunctionClass) || (mt.isInstanceOf[MethodType] && isFunctionNType(parent)) =>
1119
Some(mt)
1120
- case AppliedType(parent, targs) if targs.nonEmpty && isFunctionNType(ft) =>
+ case AppliedType(parent, targs) if isFunctionNType(ft) =>
1121
val isContextual = ft.typeSymbol.name.isContextFunction
1122
val methodType = if isContextual then ContextualMethodType else MethodType
1123
Some(methodType(targs.init, targs.last))
0 commit comments