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