Skip to content

Commit d869916

Browse files
nox213zielinsky
authored andcommitted
address reviews
1 parent fa56372 commit d869916

File tree

1 file changed

+2
-2
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ object SpaceEngine {
709709
else NoType
710710
}.filter(_.exists)
711711
parts
712-
case tref: TypeRef if tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType =>
712+
case tref: TypeRef if tref.symbol.isAbstractOrAliasType && !tref.info.hiBound.isNothingType =>
713713
rec(tref.info.hiBound, mixins)
714714
case _ => ListOfNoType
715715
end rec
@@ -857,7 +857,7 @@ object SpaceEngine {
857857
classSym.is(Case) ||
858858
(tpw.isInstanceOf[TypeRef] && {
859859
val tref = tpw.asInstanceOf[TypeRef]
860-
if (tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType)
860+
if (tref.symbol.isAbstractOrAliasType && !tref.info.hiBound.isNothingType)
861861
isCheckable(tref.info.hiBound)
862862
else
863863
false

0 commit comments

Comments
 (0)