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,7 @@
compiler/testData/cli/jvm/builderInferenceByDefault.kt:1:21: warning: parameter 'builderAction' is never used
fun <K, V> buildMap(builderAction: MutableMap<K, V>.() -> Unit): Map<K, V> = mapOf()
^
compiler/testData/cli/jvm/builderInferenceByDefault.kt:4:9: warning: variable 'x' is never used
val x = buildMap {
^
OK