Skip to content

Commit f920cd1

Browse files
authored
Update compiler/src/dotty/tools/dotc/core/GadtConstraint.scala
1 parent 3fce32d commit f920cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ final class ProperGadtConstraint private(
312312

313313
override def fresh = new ProperGadtConstraint
314314
override def restore(other: GadtConstraint): Unit =
315-
assert(!other.isNarrowing, "cannot restore a non-empty GADTMap")
315+
assert(other eq EmptyGadtConstraint, "cannot restore a non-empty GADTMap")
316316

317317
override def debugBoundsDescription(using Context): String = "EmptyGadtConstraint"
318318

0 commit comments

Comments
 (0)