Minor, remove TypeSystemContext.isNotNullNothing
Use equivalent isNothing instead
This commit is contained in:
@@ -347,12 +347,6 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext {
|
||||
return this is ConeClassLikeSymbol && classId == StandardClassIds.Nothing
|
||||
}
|
||||
|
||||
override fun KotlinTypeMarker.isNotNullNothing(): Boolean {
|
||||
require(this is ConeKotlinType)
|
||||
return typeConstructor().isNothingConstructor() && !this.nullability.isNullable
|
||||
}
|
||||
|
||||
|
||||
override fun SimpleTypeMarker.isSingleClassifierType(): Boolean {
|
||||
if (isError()) return false
|
||||
if (this is ConeCapturedType) return true
|
||||
|
||||
@@ -174,11 +174,6 @@ interface IrTypeSystemContext : TypeSystemInferenceExtensionContext {
|
||||
|
||||
override fun TypeConstructorMarker.isNothingConstructor() = this === irBuiltIns.nothingClass
|
||||
|
||||
override fun KotlinTypeMarker.isNotNullNothing(): Boolean {
|
||||
val simpleType = this as? IrSimpleType ?: return false
|
||||
return simpleType == irBuiltIns.nothingType && !simpleType.hasQuestionMark
|
||||
}
|
||||
|
||||
override fun SimpleTypeMarker.isSingleClassifierType() = true
|
||||
|
||||
override fun SimpleTypeMarker.possibleIntegerTypes() = irBuiltIns.run {
|
||||
|
||||
Reference in New Issue
Block a user