FE: split test "buildList type argument is inferred into upper bound"

Related to KT-50520, KT-56169
This commit is contained in:
Mikhail Glukhikh
2023-03-14 11:15:44 +01:00
committed by Space Team
parent 8edf8573b5
commit ba2d896c01
8 changed files with 74 additions and 26 deletions
@@ -0,0 +1,11 @@
// WITH_STDLIB
// !LANGUAGE: -ForbidInferringPostponedTypeVariableIntoDeclaredUpperBound
// ISSUE: KT-50520
fun box(): String {
buildList {
val foo = { first() }
add(0, foo)
}
return "OK"
}