Skip to content

Commit 83cfad9

Browse files
committed
Use sym.exists
1 parent aafd56e commit 83cfad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ class TrackingTypeComparer(initctx: Context) extends TypeComparer(initctx) {
21072107
}
21082108

21092109
override def gadtBounds(sym: Symbol)(implicit ctx: Context): TypeBounds = {
2110-
if (sym eq NoSymbol) null
2110+
if (!sym.exists) null
21112111
else {
21122112
footprint += sym.typeRef
21132113
super.gadtBounds(sym)

0 commit comments

Comments
 (0)