12 lines
358 B
Kotlin
Vendored
12 lines
358 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// IGNORE_BACKEND: WASM
|
|
// !LANGUAGE: -UseBuilderInferenceWithoutAnnotation
|
|
|
|
fun <K, V> buildMap(builderAction: MutableMap<K, V>.() -> Unit): Map<K, V> = mapOf()
|
|
|
|
fun box(): String {
|
|
val x = <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>buildMap<!> {
|
|
put("", "")
|
|
}
|
|
return "OK"
|
|
} |