[FIR] Add toString() methods to some ConeSubstitutor implementation

This is needed only for pleasant debugging
This commit is contained in:
Dmitriy Novozhilov
2023-06-07 15:42:38 +03:00
committed by Space Team
parent ba6f8e9b23
commit 8b7cfcda10
3 changed files with 36 additions and 1 deletions
@@ -55,7 +55,11 @@ data class ConeStubTypeConstructor(
val variable: ConeTypeVariable,
val isTypeVariableInSubtyping: Boolean,
val isForFixation: Boolean = false,
) : TypeConstructorMarker
) : TypeConstructorMarker {
override fun toString(): String {
return "Stub(${variable.typeConstructor.debugName})"
}
}
sealed class ConeStubType(val constructor: ConeStubTypeConstructor, override val nullability: ConeNullability) : StubTypeMarker,
ConeSimpleKotlinType() {