Skip to content

Commit c9b9780

Browse files
committed
Improve error message
1 parent 7919795 commit c9b9780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
526526
case (e1: TypeBounds, _) if e1 contains e2 => e2
527527
case (tv1: TypeVar, tv2: TypeVar) if tv1.instanceOpt eq tv2.instanceOpt => e1
528528
case _ =>
529-
throw new AssertionError(i"cannot merge $this with $other")
529+
throw new AssertionError(i"cannot merge $this with $other, mergeEntries($e1, $e2) failed")
530530
}
531531

532532
val that = other.asInstanceOf[OrderingConstraint]

0 commit comments

Comments
 (0)