Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b1f59e5f0d739fd4c19f9e413cc9c324657eafed
/
.
/
compiler
/
testData
/
codegen
/
box
/
delegation
/
computeIfAbsent.kt
blob: 3af983624cef1454bcd156330c9d7572432e0e92 [
file
]
// TARGET_BACKEND: JVM
// WITH_STDLIB
// FULL_JDK
// JVM_ABI_K1_K2_DIFF: KT-63828
class
MyMap
:
MutableMap
<
Int
,
String
>
by
hashMapOf
()
fun box
():
String
{
val map
=
MyMap
()
return
map
.
computeIfAbsent
(
42
)
{
"OK"
}
}