FIR: Avoid calling ClassId::asString from ConeTypeContext
This commit is contained in:
@@ -338,14 +338,13 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext {
|
||||
}
|
||||
|
||||
override fun TypeConstructorMarker.isAnyConstructor(): Boolean {
|
||||
return this is ConeClassLikeSymbol && classId.asString() == "kotlin/Any"
|
||||
return this is ConeClassLikeSymbol && classId == StandardClassIds.Any
|
||||
}
|
||||
|
||||
override fun TypeConstructorMarker.isNothingConstructor(): Boolean {
|
||||
return this is ConeClassLikeSymbol && classId.asString() == "kotlin/Nothing"
|
||||
return this is ConeClassLikeSymbol && classId == StandardClassIds.Nothing
|
||||
}
|
||||
|
||||
|
||||
override fun KotlinTypeMarker.isNotNullNothing(): Boolean {
|
||||
require(this is ConeKotlinType)
|
||||
return typeConstructor().isNothingConstructor() && !this.nullability.isNullable
|
||||
|
||||
Reference in New Issue
Block a user