Files
Jinseong Jeon b47a33cf9d Back to getOrDefault test
The main purpose was to test getOrDefault w/ non/null value does not
bother the resolution. To be aligned with test file
mapGetOrDefault_nullable.kt, this one should test getOrDefault too.
All we needed was // WITH_STDLIB
2024-03-06 19:26:52 +00:00

6 lines
105 B
Kotlin
Vendored

// WITH_STDLIB
fun box(map: MutableMap<String, String>) {
map.get<caret>OrDefault("key", "value")
}