a4ccb72b94
^KT-49283 Fixed ^KT-64077 Fixed
19 lines
414 B
Kotlin
Vendored
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]
|
|
}
|