K1/K2: add test to confirm behavior of KT-63243

This commit is contained in:
Mikhail Glukhikh
2023-12-13 14:39:24 +01:00
committed by Space Team
parent b84aa190d7
commit 676e350b6f
7 changed files with 64 additions and 0 deletions
@@ -0,0 +1,17 @@
// FULL_JDK
// JVM_TARGET: 1.8
// ISSUE: KT-63243
abstract class MyMap<K : Any, V : Any> : AbstractMutableMap<K, V>()
interface II {
fun replace(key: Int, value: Int): Int? = null
}
abstract <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class ZI<!> : MyMap<Int, Int>(), II
interface IS {
fun replace(key: String, value: String): String? = null
}
abstract <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class ZS<!> : MyMap<String, String>(), IS
@@ -0,0 +1,17 @@
// FULL_JDK
// JVM_TARGET: 1.8
// ISSUE: KT-63243
abstract class MyMap<K : Any, V : Any> : AbstractMutableMap<K, V>()
interface II {
fun replace(key: Int, value: Int): Int? = null
}
abstract class ZI : MyMap<Int, Int>(), II
interface IS {
fun replace(key: String, value: String): String? = null
}
abstract <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED, MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>class ZS<!> : MyMap<String, String>(), IS