Files
kotlin-fork/compiler/testData/codegen/box/builderInference/issues/kt49283.kt
T
Denis.Zharkov a4ccb72b94 Add tests making sure that a couple of issues are fixed by PCLA
^KT-49283 Fixed
^KT-64077 Fixed
2024-02-09 13:03:12 +00:00

19 lines
414 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
// ISSUE: KT-49283
// IGNORE_BACKEND_K1: ANY
fun takeListOfStrings(x: List<String>) {}
fun box(): String {
val result = buildList l1@ { // Not enough information to infer type variable E, but could be inferred into String
val anotherList = buildList {
takeListOfStrings(this)
this@l1.add("OK")
}
}
return result[0]
}