Skip to content

Commit 73975db

Browse files
committed
Match refined PolyFunction in findFunctionType
1 parent d0d2ec6 commit 73975db

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
@@ -1749,7 +1749,7 @@ object Types {
17491749
else NoType
17501750
case t if defn.isNonRefinedFunction(t) =>
17511751
t
1752-
case t @ defn.PolyOrErasedFunctionOf(_: MethodType) =>
1752+
case t @ defn.PolyOrErasedFunctionOf(_) =>
17531753
t
17541754
case t @ SAMType(_) =>
17551755
t

0 commit comments

Comments
 (0)