diff --git a/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/impl/Impl.kt b/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/impl/Impl.kt index c284a417324..f02a92fe243 100644 --- a/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/impl/Impl.kt +++ b/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/impl/Impl.kt @@ -14,10 +14,12 @@ import org.jetbrains.kotlin.util.WeakPair class ConeClassLikeTypeImpl( override val lookupTag: ConeClassLikeLookupTag, - override val typeArguments: Array, + typeArguments: Array, isNullable: Boolean, override val attributes: ConeAttributes = ConeAttributes.Empty ) : ConeClassLikeType() { + override val typeArguments = if (typeArguments.isEmpty()) EMPTY_ARRAY else typeArguments + override val nullability: ConeNullability = ConeNullability.create(isNullable) // Cached expanded type and the relevant session