[FIR] Don't render ! at the end of ConeFlexibleType

This commit is contained in:
Dmitriy Novozhilov
2021-03-10 17:32:01 +03:00
parent 932eed2c14
commit dceb8b2991
174 changed files with 309 additions and 311 deletions
@@ -10,7 +10,7 @@ import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.contract
fun ConeKotlinType.render(): String {
val nullabilitySuffix = if (this !is ConeKotlinErrorType && this !is ConeClassErrorType) nullability.suffix else ""
val nullabilitySuffix = if (this !is ConeFlexibleType && this !is ConeClassErrorType) nullability.suffix else ""
return when (this) {
is ConeTypeVariableType -> "${renderAttributes()}TypeVariable(${this.lookupTag.name})"
is ConeDefinitelyNotNullType -> "${original.render()}!!"