Skip to content

Commit c061eed

Browse files
committed
Use isRefinedFunctionType in place of poly || erased
1 parent 5f3ffbb commit c061eed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/ast/TreeInfo.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,9 +960,7 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
960960
&& tree.isTerm
961961
&& {
962962
val qualType = tree.qualifier.tpe
963-
hasRefinement(qualType) &&
964-
!qualType.derivesFrom(defn.PolyFunctionClass) &&
965-
!defn.isErasedFunctionType(qualType)
963+
hasRefinement(qualType) && !defn.isRefinedFunctionType(qualType)
966964
}
967965
def loop(tree: Tree): Boolean = tree match
968966
case TypeApply(fun, _) =>

0 commit comments

Comments
 (0)