File tree 1 file changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,12 @@ class CheckRealizable(implicit ctx: Context) {
91
91
if (! sym.isStable)
92
92
patchRealizability(NotStable )
93
93
// 3. If the symbol isn't "lazy" and its prefix is realizable
94
- else if (! isLateInitialized(sym))
95
- // XXX: This is a bit fishy: we only cache that the symbol is
96
- // stable if it appears under a realizable prefix.
97
- // XXX: Add object DependsOnPrefix extends Realizability(""), but filter it out here.
94
+ else if (! isLateInitialized(sym)) {
95
+ // The symbol itself is stable, cache this information:
96
+ sym.setFlag( Stable )
97
+ // Realizability now depends on the prefix:
98
98
patchRealizability(realizability(tp.prefix))
99
- else if (! sym.isEffectivelyFinal)
99
+ } else if (! sym.isEffectivelyFinal)
100
100
patchRealizability(new NotFinal (sym))
101
101
else
102
102
// 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