diff --git a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/ConstraintPositionAndErrors.kt b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/ConstraintPositionAndErrors.kt index 48546e47f7a..585704d6e32 100644 --- a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/ConstraintPositionAndErrors.kt +++ b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/ConstraintPositionAndErrors.kt @@ -111,7 +111,11 @@ class NewConstraintError( override val upperType: KotlinTypeMarker, override val position: IncorporationConstraintPosition, ) : ConstraintSystemError(if (position.from is ReceiverConstraintPosition<*>) INAPPLICABLE_WRONG_RECEIVER else INAPPLICABLE), - NewConstraintMismatch + NewConstraintMismatch { + override fun toString(): String { + return "$lowerType <: $upperType" + } +} class NewConstraintWarning( override val lowerType: KotlinTypeMarker,