[FE] Add toString to NewConstraintError

This commit is contained in:
Dmitriy Novozhilov
2022-10-07 13:21:38 +03:00
committed by Space Team
parent 74ba175255
commit d39c019051
@@ -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,