mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
or is a Java method from a Kotlin built-in class (transitively). https://github.com/Kotlin/KEEP/blob/master/proposals/jdk-dependent-built-ins.md#backward-compatibility-of-overrides
16 lines
719 B
Kotlin
Vendored
16 lines
719 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER -PLATFORM_CLASS_MAPPED_TO_KOTLIN
|
|
|
|
interface IBaseWithKotlinDeclaration : Map<String, String> {
|
|
fun replace(key: String, value: String): String?
|
|
}
|
|
|
|
interface TestDerivedInterfaceHidingWithKotlinDeclaration : IBaseWithKotlinDeclaration {
|
|
// VIRTUAL_MEMBER_HIDDEN: hides member declaration inherited from a Kotlin interface
|
|
<!VIRTUAL_MEMBER_HIDDEN!>fun replace(key: String, value: String): String?<!>
|
|
}
|
|
|
|
interface TestDerivedInterfaceDefaultWithKotlinDeclaration : IBaseWithKotlinDeclaration {
|
|
// VIRTUAL_MEMBER_HIDDEN: hides member declaration inherited from a Kotlin interface
|
|
<!VIRTUAL_MEMBER_HIDDEN!>fun replace(key: String, value: String): String?<!> = TODO()
|
|
}
|