Add tests making sure that a couple of issues are fixed by PCLA
^KT-49283 Fixed ^KT-64077 Fixed
This commit is contained in:
committed by
Space Team
parent
fb8cc00d1f
commit
a4ccb72b94
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user