Skip to content

Commit 72d4f8a

Browse files
nicolasstuckiKordyjan
authored andcommitted
Handle dependent function refinements in findFunctionType
[Cherry-picked 163cdf5]
1 parent 846b3d9 commit 72d4f8a

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
@@ -1737,9 +1737,7 @@ object Types {
17371737
if !tf1.exists then tf2
17381738
else if !tf2.exists then tf1
17391739
else NoType
1740-
case t if defn.isNonRefinedFunction(t) =>
1741-
t
1742-
case t @ defn.PolyOrErasedFunctionOf(_) =>
1740+
case t if defn.isFunctionType(t) =>
17431741
t
17441742
case t @ SAMType(_, _) =>
17451743
t

0 commit comments

Comments
 (0)