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
This commit is contained in:
committed by
Space Team
parent
cbabfc0fe2
commit
b47a33cf9d
@@ -1,3 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun box(map: MutableMap<String, String>) {
|
||||
map.g<caret>et("key")
|
||||
map.get<caret>OrDefault("key", "value")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user