[FIR] Support completion of lambdas with type variable as expected type

#KT-37310 Fixed
#KT-37304 Fixed
This commit is contained in:
Dmitriy Novozhilov
2020-03-06 14:11:31 +03:00
parent 643d7be12d
commit 1c0fd7342f
28 changed files with 281 additions and 186 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val p: (String) -> Boolean = if (true) {
{ true }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
val foo: ((String) -> String) = run {
{ it }
}