[FIR] Remove an always false condition from replaceType()

Otherwise, bootstrapping fails.

This condition is `false` because of
`require(this is ConeKotlinTypeProjection)`,
since `ConeKotlinTypeProjection` is its
sibling, not a subtype.
This commit is contained in:
Nikolay Lunyak
2024-03-01 11:06:48 +02:00
committed by Space Team
parent 4cdddb1b08
commit a5423032a3
@@ -236,7 +236,6 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
require(newType is ConeKotlinType)
return when (this) {
is ConeKotlinType -> newType
is ConeStarProjection -> ConeStarProjection
is ConeKotlinTypeProjectionOut -> ConeKotlinTypeProjectionOut(newType)
is ConeKotlinTypeProjectionIn -> ConeKotlinTypeProjectionIn(newType)
is ConeKotlinTypeConflictingProjection -> ConeKotlinTypeConflictingProjection(newType)