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
@@ -0,0 +1,20 @@
// SKIP_TXT
// FIR_IDENTICAL
// FILE: A.java
import org.jetbrains.annotations.NotNull;
public interface A extends B {
void foo(@NotNull String... value);
}
// FILE: main.kt
interface B {
fun foo(vararg x: String) {}
}
fun main(a: A) {
a.foo()
a.foo("1")
a.foo("2", "3")
}