Add tests making sure that a couple of issues are fixed by PCLA

^KT-49283 Fixed
^KT-64077 Fixed
This commit is contained in:
Denis.Zharkov
2024-02-08 17:07:58 +01:00
committed by Space Team
parent fb8cc00d1f
commit a4ccb72b94
17 changed files with 143 additions and 0 deletions
@@ -0,0 +1,18 @@
// 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]
}