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 3fce32d commit f920cd1Copy full SHA for f920cd1
compiler/src/dotty/tools/dotc/core/GadtConstraint.scala
@@ -312,7 +312,7 @@ final class ProperGadtConstraint private(
312
313
override def fresh = new ProperGadtConstraint
314
override def restore(other: GadtConstraint): Unit =
315
- assert(!other.isNarrowing, "cannot restore a non-empty GADTMap")
+ assert(other eq EmptyGadtConstraint, "cannot restore a non-empty GADTMap")
316
317
override def debugBoundsDescription(using Context): String = "EmptyGadtConstraint"
318
0 commit comments