Skip to content

Commit 8583f57

Browse files
committed
Fix scala#4060 by marking ghost symbols as unstable
1 parent 4cfffbe commit 8583f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ object SymDenotations {
600600

601601
/** Is this a denotation of a stable term (or an arbitrary type)? */
602602
final def isStable(implicit ctx: Context) =
603-
isType || is(Stable) || !(is(UnstableValue) || info.isInstanceOf[ExprType])
603+
!is(Ghost) && (isType || is(Stable) || !(is(UnstableValue) || info.isInstanceOf[ExprType]))
604604

605605
/** Is this a "real" method? A real method is a method which is:
606606
* - not an accessor

0 commit comments

Comments
 (0)