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.
21 lines
418 B
Kotlin
Vendored
21 lines
418 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
public open class A<T> {
|
|
fun foo(x: T) = "O"
|
|
fun foo(x: A<T>) = "K"
|
|
}
|
|
|
|
interface C<E> {
|
|
fun foo(x: E): String
|
|
fun foo(x: A<E>): String
|
|
}
|
|
|
|
interface D {
|
|
fun foo(x: A<String>): String
|
|
}
|
|
|
|
class <!CONFLICTING_INHERITED_JVM_DECLARATIONS!>B1<!> : A<A<String>>(), D
|
|
|
|
interface <!CONFLICTING_INHERITED_JVM_DECLARATIONS!>B2<!> : C<A<String>>, D
|