We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 846b3d9 commit 72d4f8aCopy full SHA for 72d4f8a
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1737,9 +1737,7 @@ object Types {
1737
if !tf1.exists then tf2
1738
else if !tf2.exists then tf1
1739
else NoType
1740
- case t if defn.isNonRefinedFunction(t) =>
1741
- t
1742
- case t @ defn.PolyOrErasedFunctionOf(_) =>
+ case t if defn.isFunctionType(t) =>
1743
t
1744
case t @ SAMType(_, _) =>
1745
0 commit comments