Skip to content

Commit 3694bae

Browse files
committed
Remove unnecessary guard from AppliedType
1 parent b640754 commit 3694bae

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
@@ -1119,7 +1119,7 @@ class Definitions {
11191119
ft match
11201120
case PolyFunctionOf(mt: MethodType) =>
11211121
Some(mt.paramInfos, mt.resType, mt.isContextualMethod)
1122-
case AppliedType(parent, targs) if targs.nonEmpty && isFunctionNType(ft) =>
1122+
case AppliedType(parent, targs) if isFunctionNType(ft) =>
11231123
Some(targs.init, targs.last, ft.typeSymbol.name.isContextFunction)
11241124
case _ =>
11251125
None

0 commit comments

Comments
 (0)