Minor, add regression test for K2 delegation issue

#KT-62120
This commit is contained in:
Alexander Udalov
2023-11-06 15:50:08 +01:00
committed by Space Team
parent 5506384cc9
commit d2ebaf4e6c
10 changed files with 63 additions and 0 deletions
@@ -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" }
}