Skip to content

Commit 65f6dfa

Browse files
committed
Remove unnecessary guard for AppliedType
1 parent cb34be5 commit 65f6dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ class Definitions {
11171117
case RefinedType(parent, nme.apply, mt: MethodOrPoly)
11181118
if parent.derivesFrom(defn.PolyFunctionClass) || (mt.isInstanceOf[MethodType] && isFunctionNType(parent)) =>
11191119
Some(mt)
1120-
case AppliedType(parent, targs) if targs.nonEmpty && isFunctionNType(ft) =>
1120+
case AppliedType(parent, targs) if isFunctionNType(ft) =>
11211121
val isContextual = ft.typeSymbol.name.isContextFunction
11221122
val methodType = if isContextual then ContextualMethodType else MethodType
11231123
Some(methodType(targs.init, targs.last))

0 commit comments

Comments
 (0)