File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 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) {
8989 if (! sym.isStable)
9090 patchRealizability(NotStable )
9191 // 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:
9596 // XXX: Add object DependsOnPrefix extends Realizability(""), but filter it out here.
9697 patchRealizability(realizability(tp.prefix))
97- else if (! sym.isEffectivelyFinal)
98+ } else if (! sym.isEffectivelyFinal)
9899 patchRealizability(new NotFinal (sym))
99100 else
100101 // 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