File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments