Introduce a compiler X-flag to use the builder inference by default for all calls
^KT-48622 Fixed
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user