Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLib/platformDependent.kt
T
Ilya Chernikov 6356807997 Reapply "Only create descriptors for candidates with lambda args"
#KT-36247 fixed
A lot of testdata changed because significanly less (error) descriptors
are created for unresolved types, so diagnostics became different.
2020-02-14 11:41:30 +01:00

6 lines
249 B
Kotlin
Vendored

fun test(m: Map<String, Int>, mm: MutableMap<Int, String>) {
m.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>getOrDefault<!>("2", 1)
mm.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>getOrDefault<!>(1, "2")
mm.remove(1, <!TOO_MANY_ARGUMENTS!>"2"<!>)
}