Files
kotlin-fork/compiler/testData/codegen/box/inference/builderInference/withoutAnnotation.kt
T
2021-10-02 06:14:35 +00:00

12 lines
271 B
Kotlin
Vendored

// WITH_RUNTIME
// 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"
}