Skip to content

Commit fa56372

Browse files
nox213zielinsky
authored andcommitted
call isCheckable recursively
1 parent 1476ebb commit fa56372

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
@@ -857,7 +857,10 @@ object SpaceEngine {
857857
classSym.is(Case) ||
858858
(tpw.isInstanceOf[TypeRef] && {
859859
val tref = tpw.asInstanceOf[TypeRef]
860-
tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType
860+
if (tref.symbol.isOpaqueAlias && !tref.info.hiBound.isNothingType)
861+
isCheckable(tref.info.hiBound)
862+
else
863+
false
861864
})
862865

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

0 commit comments

Comments
 (0)