Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
delegation
/
computeIfAbsent.kt
blob: 18db905fa557c9bbf4e54f73b868c084ee210190 [
file
]
// 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"
}
}