Skip to content

Commit 7e0affb

Browse files
committed
Fix isRealizableTest
Need to demand "effecively final" instead of `is(Final)`.
1 parent cf29806 commit 7e0affb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ object SymDenotations {
527527
is(Stable) || isType || {
528528
val isRealizable =
529529
!is(Lazy, butNot = Module) ||
530-
is(Final) && ctx.realizability(info) == TypeOps.Realizable
530+
isEffectivelyFinal && ctx.realizability(info) == TypeOps.Realizable
531531
isRealizable && { setFlag(Stable); true }
532532
}
533533

0 commit comments

Comments
 (0)