File tree 1 file changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,13 @@ class CheckRealizable(implicit ctx: Context) {
89
89
if (! sym.isStable)
90
90
patchRealizability(NotStable )
91
91
// 3. If the symbol isn't "lazy" and its prefix is realizable
92
- else if (! isLateInitialized(sym))
93
- // XXX: This is a bit fishy: we only cache that the symbol is
94
- // stable if it appears under a realizable prefix.
92
+ else if (! isLateInitialized(sym)) {
93
+ // The symbol itself is stable, cache this information:
94
+ sym.setFlag(Stable )
95
+ // Realizability now depends on the prefix:
95
96
// XXX: Add object DependsOnPrefix extends Realizability(""), but filter it out here.
96
97
patchRealizability(realizability(tp.prefix))
97
- else if (! sym.isEffectivelyFinal)
98
+ } else if (! sym.isEffectivelyFinal)
98
99
patchRealizability(new NotFinal (sym))
99
100
else
100
101
// 4. If the symbol is effectively final, and a lazy or erased val
You can’t perform that action at this time.
0 commit comments