Skip to content

Commit 846b3d9

Browse files
nicolasstuckiKordyjan
authored andcommitted
Match refined PolyFunction in findFunctionType
[Cherry-picked 73975db]
1 parent 556ff5e commit 846b3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ object Types {
17391739
else NoType
17401740
case t if defn.isNonRefinedFunction(t) =>
17411741
t
1742-
case t @ defn.PolyOrErasedFunctionOf(_: MethodType) =>
1742+
case t @ defn.PolyOrErasedFunctionOf(_) =>
17431743
t
17441744
case t @ SAMType(_, _) =>
17451745
t

0 commit comments

Comments
 (0)