Skip to content

Commit 483a595

Browse files
committed
Be more careful setting the Stable flag
1 parent 6bf171f commit 483a595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/CheckRealizable.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class CheckRealizable(implicit ctx: Context) {
8282
// roughly: it's realizable if the info does not have bad bounds
8383
realizability(tp.info).mapError(r => new ProblemInUnderlying(tp, r))
8484
r andAlso {
85-
sym.setFlag(Stable)
85+
if (sym.isStable) sym.setFlag(Stable) // it's known to be stable and realizable
8686
realizability(tp.prefix)
8787
}
8888
}

0 commit comments

Comments
 (0)