mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +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
19 lines
597 B
Kotlin
Vendored
19 lines
597 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER -PLATFORM_CLASS_MAPPED_TO_KOTLIN
|
|
|
|
abstract class Test1 : Map<String, String> {
|
|
<!VIRTUAL_MEMBER_HIDDEN!>fun containsKey(key: String): Boolean<!> = TODO()
|
|
|
|
fun getOrDefault(key: String, defaultValue: String): String = TODO()
|
|
}
|
|
|
|
abstract class Test2 : MutableMap<String, String> {
|
|
fun replace(key: String, value: String): String? = TODO()
|
|
}
|
|
|
|
abstract class Test3 : java.util.AbstractMap<String, String>() {
|
|
<!VIRTUAL_MEMBER_HIDDEN!>fun containsKey(key: String): Boolean<!> = TODO()
|
|
|
|
fun replace(key: String, value: String): String? = TODO()
|
|
}
|
|
|