diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeIntegerLiteralTypeImpl.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeIntegerLiteralTypeImpl.kt index 78ee8f82442..da6d6a2183b 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeIntegerLiteralTypeImpl.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeIntegerLiteralTypeImpl.kt @@ -41,7 +41,7 @@ class ConeIntegerLiteralTypeImpl : ConeIntegerLiteralType { override val supertypes: List by lazy { listOf( NUMBER_TYPE, - ConeClassLikeTypeImpl(ConeClassLikeLookupTagImpl(StandardClassIds.Comparable), arrayOf(ConeKotlinTypeProjectionOut(this)), false) + ConeClassLikeTypeImpl(COMPARABLE_TAG, arrayOf(ConeKotlinTypeProjectionOut(this)), false) ) } @@ -63,6 +63,8 @@ class ConeIntegerLiteralTypeImpl : ConeIntegerLiteralType { private val BYTE_RANGE = Byte.MIN_VALUE.toLong()..Byte.MAX_VALUE.toLong() private val SHORT_RANGE = Short.MIN_VALUE.toLong()..Short.MAX_VALUE.toLong() + private val COMPARABLE_TAG = ConeClassLikeLookupTagImpl(StandardClassIds.Comparable) + fun findCommonSuperType(types: Collection): SimpleTypeMarker? { return findCommonSuperTypeOrIntersectionType(types, Mode.COMMON_SUPER_TYPE) }