Skip to content

Commit bda0318

Browse files
committed
Fix typo in assertion
1 parent 32fb05c commit bda0318

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ object Types {
125125
def isRef(sym: Symbol)(implicit ctx: Context): Boolean = stripAnnots.stripTypeVar match {
126126
case this1: TypeRef =>
127127
this1.info match { // see comment in Namer#typeDefSig
128-
case TypeAlias(tp) => assert((tp ne this) && (tp ne this), tp); tp.isRef(sym)
128+
case TypeAlias(tp) =>
129+
assert((tp ne this) && (tp ne this1), s"$tp / $this")
130+
tp.isRef(sym)
129131
case _ => this1.symbol eq sym
130132
}
131133
case this1: RefinedOrRecType => this1.parent.isRef(sym)

0 commit comments

Comments
 (0)