[FIR] Fix projection of Comparable supertype for ILT

#KT-39048 Fixed
This commit is contained in:
Dmitriy Novozhilov
2020-07-02 15:35:14 +03:00
parent a882a9dff5
commit 8311c1f0e2
8 changed files with 36 additions and 4 deletions
@@ -59,7 +59,7 @@ class ConeIntegerLiteralTypeImpl : ConeIntegerLiteralType {
override val supertypes: List<ConeClassLikeType> by lazy {
listOf(
NUMBER_TYPE,
ConeClassLikeTypeImpl(COMPARABLE_TAG, arrayOf(ConeKotlinTypeProjectionOut(this)), false)
ConeClassLikeTypeImpl(COMPARABLE_TAG, arrayOf(ConeKotlinTypeProjectionIn(this)), false)
)
}