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 32fb05c commit bda0318Copy full SHA for bda0318
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -125,7 +125,9 @@ object Types {
125
def isRef(sym: Symbol)(implicit ctx: Context): Boolean = stripAnnots.stripTypeVar match {
126
case this1: TypeRef =>
127
this1.info match { // see comment in Namer#typeDefSig
128
- case TypeAlias(tp) => assert((tp ne this) && (tp ne this), tp); tp.isRef(sym)
+ case TypeAlias(tp) =>
129
+ assert((tp ne this) && (tp ne this1), s"$tp / $this")
130
+ tp.isRef(sym)
131
case _ => this1.symbol eq sym
132
}
133
case this1: RefinedOrRecType => this1.parent.isRef(sym)
0 commit comments