[FE 1.0] Take care standalone lambdas during updating types in the builder inference

^KT-50520 Fixed
This commit is contained in:
Victor Petukhov
2022-02-17 12:22:21 +01:00
committed by teamcity
parent c25e07119c
commit b411eb36e8
14 changed files with 115 additions and 60 deletions
@@ -0,0 +1,11 @@
// WITH_STDLIB
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: different behavour with FE 1.0, reported `NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER`
fun box(): String {
buildList {
val foo = { first() }
add(0, foo)
}
return "OK"
}