We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56150a2 commit 5fe845eCopy full SHA for 5fe845e
src/dotty/tools/dotc/core/Types.scala
@@ -92,7 +92,7 @@ object Types {
92
93
/** Does this type denote a stable reference (i.e. singleton type)? */
94
final def isStable(implicit ctx: Context): Boolean = this match {
95
- case tp: TermRef => tp.termSymbol.isStable
+ case tp: TermRef => tp.termSymbol.isStable && tp.prefix.isStable
96
case _: SingletonType => true
97
case NoPrefix => true
98
case _ => false
0 commit comments