Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
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"
}
}