Skip to content

Commit de209a9

Browse files
committed
Polish pattern match
1 parent 5b2d7bf commit de209a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -2047,8 +2047,7 @@ trait Applications extends Compatibility {
20472047
else WildcardType)
20482048
/** Should we generate a partial function for the arg ? */
20492049
def isPartial = untpd.functionWithUnknownParamType(arg) match
2050-
case Some(fn) =>
2051-
fn.isInstanceOf[untpd.Match] &&
2050+
case Some(_: untpd.Match) =>
20522051
formalsForArg.exists(_.isRef(defn.PartialFunctionClass))
20532052
case None =>
20542053
false

0 commit comments

Comments
 (0)