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")
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:get(p: PsiType:Object): PsiType:V
|
||||
PsiMethod:getOrDefault($this$getOrDefault: PsiType:Map<? extends K, ? extends V>, key: PsiType:K, defaultValue: PsiType:V): PsiType:V
|
||||
Reference in New Issue
Block a user