Resolve calls using the builder inference despite the presence of the annotation if there are uninferred type variables
^KT-48194 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
55811c8851
commit
bf1e68a53f
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// DONT_TARGET_EXACT_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!>buildMap<!> {
|
||||
put("", "")
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user