FIR: Fix overridability of Kotlin vararg from Java

This commit is contained in:
Denis.Zharkov
2021-10-25 13:35:30 +03:00
parent 4b1ce6c1a7
commit 5690a9f21b
6 changed files with 45 additions and 2 deletions
@@ -94,8 +94,7 @@ class JavaOverrideChecker internal constructor(
): Boolean =
when {
candidateTypeProjection is ConeKotlinTypeProjection && baseTypeProjection is ConeKotlinTypeProjection ->
candidateTypeProjection.kind == baseTypeProjection.kind &&
isEqualTypes(candidateTypeProjection.type, baseTypeProjection.type, substitutor)
isEqualTypes(candidateTypeProjection.type, baseTypeProjection.type, substitutor)
candidateTypeProjection is ConeStarProjection && baseTypeProjection is ConeStarProjection -> true
else -> false
}