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 208c8c4 commit 4b1adefCopy full SHA for 4b1adef
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1509,7 +1509,7 @@ object Types {
1509
1510
/** Dealias, and if result is a dependent function type, drop the `apply` refinement. */
1511
final def dropDependentRefinement(using Context): Type = dealias match {
1512
- case RefinedType(parent, nme.apply, mt) if defn.isNonRefinedFunction(parent) => parent
+ case RefinedType(parent, nme.apply, mt) if defn.isFunctionNType(parent) => parent
1513
case tp => tp
1514
}
1515
0 commit comments