Minor, add regression test for K2 delegation issue
#KT-62120
This commit is contained in:
committed by
Space Team
parent
5506384cc9
commit
d2ebaf4e6c
@@ -0,0 +1,10 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// FULL_JDK
|
||||
|
||||
class MyMap : MutableMap<Int, String> by hashMapOf()
|
||||
|
||||
fun box(): String {
|
||||
val map = MyMap()
|
||||
return map.computeIfAbsent(42) { "OK" }
|
||||
}
|
||||
Reference in New Issue
Block a user