866f188120
Also: * Do not rename public ABI fields This includes backing fields for const, lateinit, @JvmField properties, and instance fields for objects. * FAKE_OVERRIDE declarations for static members of parent Java classes Required to report cases when a Kotlin function accidentally overrides Java class member.
30 lines
463 B
Kotlin
Vendored
30 lines
463 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
// FILE: A.java
|
|
|
|
public interface A {
|
|
public static void foo() {}
|
|
public static void baz(String s) {}
|
|
}
|
|
|
|
// FILE: B.java
|
|
|
|
public interface B extends A {
|
|
public static void bar(int i) {}
|
|
}
|
|
|
|
// FILE: K.kt
|
|
|
|
open class K : B {
|
|
fun foo() {}
|
|
fun foo(a: Any) {}
|
|
fun bar(i: Int) {}
|
|
fun bar(i: String) {}
|
|
fun baz(i: Int) {}
|
|
|
|
companion object {
|
|
fun foo() {}
|
|
fun bar(i: Int) {}
|
|
}
|
|
}
|