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.
poly || erased
1 parent 5f3ffbb commit c061eedCopy full SHA for c061eed
compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -960,9 +960,7 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
960
&& tree.isTerm
961
&& {
962
val qualType = tree.qualifier.tpe
963
- hasRefinement(qualType) &&
964
- !qualType.derivesFrom(defn.PolyFunctionClass) &&
965
- !defn.isErasedFunctionType(qualType)
+ hasRefinement(qualType) && !defn.isRefinedFunctionType(qualType)
966
}
967
def loop(tree: Tree): Boolean = tree match
968
case TypeApply(fun, _) =>
0 commit comments