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
+13
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// DONT_TARGET_EXACT_BACKEND: WASM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// !LANGUAGE: +UseBuilderInferenceWithoutAnnotation
|
||||
|
||||
fun <K, V> buildMap(builderAction: MutableMap<K, V>.() -> Unit): Map<K, V> = mapOf()
|
||||
|
||||
fun box(): String {
|
||||
val x = buildMap {
|
||||
put("", "")
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user