We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66bcfe commit 0eea5b3Copy full SHA for 0eea5b3
compiler/src/dotty/tools/dotc/core/CheckRealizable.scala
@@ -77,11 +77,10 @@ class CheckRealizable(implicit ctx: Context) {
77
else if (!isLateInitialized(sym)) Realizable
78
else if (!sym.isEffectivelyFinal) new NotFinal(sym)
79
else realizability(tp.info).mapError(r => new ProblemInUnderlying(tp.info, r))
80
- val r1 = if (r == Realizable) {
+ r andAlso {
81
sym.setFlag(Stable)
82
realizability(tp.prefix)
83
- } else r
84
- r1
+ }
85
}
86
case _: SingletonType | NoPrefix =>
87
Realizable
0 commit comments