[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:
committed by
Space Team
parent
4cdddb1b08
commit
a5423032a3
@@ -236,7 +236,6 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
|
|||||||
require(newType is ConeKotlinType)
|
require(newType is ConeKotlinType)
|
||||||
return when (this) {
|
return when (this) {
|
||||||
is ConeKotlinType -> newType
|
is ConeKotlinType -> newType
|
||||||
is ConeStarProjection -> ConeStarProjection
|
|
||||||
is ConeKotlinTypeProjectionOut -> ConeKotlinTypeProjectionOut(newType)
|
is ConeKotlinTypeProjectionOut -> ConeKotlinTypeProjectionOut(newType)
|
||||||
is ConeKotlinTypeProjectionIn -> ConeKotlinTypeProjectionIn(newType)
|
is ConeKotlinTypeProjectionIn -> ConeKotlinTypeProjectionIn(newType)
|
||||||
is ConeKotlinTypeConflictingProjection -> ConeKotlinTypeConflictingProjection(newType)
|
is ConeKotlinTypeConflictingProjection -> ConeKotlinTypeConflictingProjection(newType)
|
||||||
|
|||||||
Reference in New Issue
Block a user