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
302 B
Kotlin
Vendored
14 lines
302 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
interface A<T> {
|
|
fun foo(l: List<T>)
|
|
}
|
|
|
|
interface B {
|
|
fun foo(l: List<Int>) {}
|
|
}
|
|
|
|
class C(f: A<String>): A<String> by <!ACCIDENTAL_OVERRIDE!>f<!>, B
|
|
|
|
<!DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE!>class D<!>(f: A<Int>): A<Int> by f, B |