We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15452c7 commit bb009bfCopy full SHA for bb009bf
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1082,7 +1082,7 @@ object Types {
1082
/** Widen type if it is unstable (i.e. an ExprType, or TermRef to unstable symbol */
1083
final def widenIfUnstable(implicit ctx: Context): Type = stripTypeVar match {
1084
case tp: ExprType => tp.resultType.widenIfUnstable
1085
- case tp: TermRef if !tp.symbol.isStableMember => tp.underlying.widenIfUnstable
+ case tp: TermRef if tp.symbol.exists && !tp.symbol.isStableMember => tp.underlying.widenIfUnstable
1086
case _ => this
1087
}
1088
0 commit comments