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.
14 lines
320 B
Kotlin
Vendored
14 lines
320 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
// TARGET_BACKEND: JVM_OLD
|
|
|
|
interface Foo<T> {
|
|
fun foo(l: List<T>) {}
|
|
}
|
|
|
|
interface Bar<T> {
|
|
fun foo(l: List<T>) {}
|
|
}
|
|
|
|
class <!CONFLICTING_JVM_DECLARATIONS!>Baz()<!>: Foo<String>, Bar<Int> {
|
|
<!ACCIDENTAL_OVERRIDE, CONFLICTING_JVM_DECLARATIONS!>fun foo(l: List<Long>)<!> {}
|
|
} |