Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/builderInference/buildListToUpperBound.fir.kt
T
2024-01-10 14:56:30 +00:00

12 lines
317 B
Kotlin
Vendored

// WITH_STDLIB
// !LANGUAGE: -ForbidInferringPostponedTypeVariableIntoDeclaredUpperBound
// ISSUE: KT-50520
fun box(): String {
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>buildList<!> {
val foo = { <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>first<!>() }
add(0, foo)
}
return "OK"
}