Skip to content

Commit c70aaa3

Browse files
committed
address reviews
1 parent 95988b2 commit c70aaa3

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
@@ -708,7 +708,7 @@ object SpaceEngine {
708708
else NoType
709709
}.filter(_.exists)
710710
parts
711-
case tref: TypeRef if tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType =>
711+
case tref: TypeRef if tref.symbol.isAbstractOrAliasType && !tref.info.hiBound.isNothingType =>
712712
rec(tref.info.hiBound, mixins)
713713
case _ => ListOfNoType
714714
end rec
@@ -858,7 +858,7 @@ object SpaceEngine {
858858
classSym.is(Case) ||
859859
(tpw.isInstanceOf[TypeRef] && {
860860
val tref = tpw.asInstanceOf[TypeRef]
861-
if (tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType)
861+
if (tref.symbol.isAbstractOrAliasType && !tref.info.hiBound.isNothingType)
862862
isCheckable(tref.info.hiBound)
863863
else
864864
false

0 commit comments

Comments
 (0)