FIR: Add cache for expanded types

This commit is contained in:
Denis Zharkov
2019-11-19 18:29:04 +03:00
parent 159aefd26d
commit 38500d27e8
2 changed files with 23 additions and 1 deletions
@@ -16,6 +16,10 @@ open class ConeClassLikeTypeImpl(
isNullable: Boolean
) : ConeClassLikeType() {
override val nullability: ConeNullability = ConeNullability.create(isNullable)
// Cached expanded type and the relevant session
var cachedExpandedType: Pair<*, ConeClassLikeType>? = null
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false