Minor, remove TypeSystemContext.isNotNullNothing

Use equivalent isNothing instead
This commit is contained in:
Alexander Udalov
2019-06-27 01:00:10 +02:00
parent c452934f5b
commit 331f0291ce
5 changed files with 1 additions and 19 deletions
@@ -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 {