We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bf171f commit 483a595Copy full SHA for 483a595
compiler/src/dotty/tools/dotc/core/CheckRealizable.scala
@@ -82,7 +82,7 @@ class CheckRealizable(implicit ctx: Context) {
82
// roughly: it's realizable if the info does not have bad bounds
83
realizability(tp.info).mapError(r => new ProblemInUnderlying(tp, r))
84
r andAlso {
85
- sym.setFlag(Stable)
+ if (sym.isStable) sym.setFlag(Stable) // it's known to be stable and realizable
86
realizability(tp.prefix)
87
}
88
0 commit comments