Skip to content

Commit 163cdf5

Browse files
committed
Handle dependent function refinements in findFunctionType
1 parent 73975db commit 163cdf5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,9 +1747,7 @@ object Types {
17471747
if !tf1.exists then tf2
17481748
else if !tf2.exists then tf1
17491749
else NoType
1750-
case t if defn.isNonRefinedFunction(t) =>
1751-
t
1752-
case t @ defn.PolyOrErasedFunctionOf(_) =>
1750+
case t if defn.isFunctionType(t) =>
17531751
t
17541752
case t @ SAMType(_) =>
17551753
t

0 commit comments

Comments
 (0)