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.
1 parent d57f91d commit 95988b2Copy full SHA for 95988b2
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -858,7 +858,10 @@ object SpaceEngine {
858
classSym.is(Case) ||
859
(tpw.isInstanceOf[TypeRef] && {
860
val tref = tpw.asInstanceOf[TypeRef]
861
- tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType
+ if (tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType)
862
+ isCheckable(tref.info.hiBound)
863
+ else
864
+ false
865
})
866
867
!sel.tpe.hasAnnotation(defn.UncheckedAnnot)
0 commit comments