We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3dd07c commit 0c18756Copy full SHA for 0c18756
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -606,8 +606,10 @@ object SymDenotations {
606
)
607
608
/** Is this a denotation of a stable term (or an arbitrary type)? */
609
- final def isStable(implicit ctx: Context): Boolean =
610
- isType || is(StableOrErased) || !is(UnstableValue) && !info.isInstanceOf[ExprType]
+ final def isStable(implicit ctx: Context): Boolean = {
+ def isUnstableValue = is(UnstableValue) || info.isInstanceOf[ExprType]
611
+ isType || is(Stable) || !isUnstableValue
612
+ }
613
614
/** Is this a denotation of a class that does not have - either direct or inherited -
615
* initaliazion code?
0 commit comments