File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -589,12 +589,14 @@ object SymDenotations {
589
589
)
590
590
591
591
/** Is this a denotation of a stable term (or an arbitrary type)? */
592
- final def isStable (implicit ctx : Context ) =
593
- isType || is(StableOrErased ) || ! is(UnstableValue ) && ! info.isInstanceOf [ExprType ]
592
+ final def isStable (implicit ctx : Context ) = {
593
+ def isUnstableValue = is(UnstableValue ) || info.isInstanceOf [ExprType ]
594
+ isType || is(StableOrErased ) || ! isUnstableValue
595
+ }
594
596
595
597
/** Is this a denotation of a class that does not have - either direct or inherited -
596
- * initaliazion code?
597
- */
598
+ * initaliazion code?
599
+ */
598
600
def isNoInitsClass (implicit ctx : Context ) =
599
601
isClass && asClass.baseClasses.forall(_.is(NoInits ))
600
602
You can’t perform that action at this time.
0 commit comments