K1/K2: add test to confirm behavior of KT-63243
This commit is contained in:
committed by
Space Team
parent
b84aa190d7
commit
676e350b6f
+17
@@ -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
|
||||
+17
@@ -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
|
||||
Reference in New Issue
Block a user