Skip to content

Commit 95988b2

Browse files
committed
call isCheckable recursively
1 parent d57f91d commit 95988b2

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,10 @@ object SpaceEngine {
858858
classSym.is(Case) ||
859859
(tpw.isInstanceOf[TypeRef] && {
860860
val tref = tpw.asInstanceOf[TypeRef]
861-
tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType
861+
if (tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType)
862+
isCheckable(tref.info.hiBound)
863+
else
864+
false
862865
})
863866

864867
!sel.tpe.hasAnnotation(defn.UncheckedAnnot)

0 commit comments

Comments
 (0)