Introduce a compiler X-flag to use the builder inference by default for all calls

^KT-48622 Fixed
This commit is contained in:
Victor Petukhov
2021-09-06 12:56:00 +03:00
parent df700117c3
commit 86d8468b8b
7 changed files with 39 additions and 0 deletions
@@ -0,0 +1,8 @@
fun <K, V> buildMap(builderAction: MutableMap<K, V>.() -> Unit): Map<K, V> = mapOf()
fun box(): String {
val x = buildMap {
put("", "")
}
return "OK"
}