[FIR] Fix lambda resolve in independent context

This commit is contained in:
Mikhail Glukhikh
2020-02-04 10:14:34 +03:00
parent 4f8d0382f7
commit 64c7ab1302
19 changed files with 75 additions and 62 deletions
@@ -1,7 +1,7 @@
fun test1(i: Int) = <!UNRESOLVED_REFERENCE!>{ i ->
fun test1(i: Int) = { i ->
i
}(i)<!>
}(i)
fun test2() = <!UNRESOLVED_REFERENCE!>{ i -> i }()<!>
fun test2() = <!INAPPLICABLE_CANDIDATE!>{ i -> i }()<!>
fun test3() = <!UNRESOLVED_REFERENCE!>{ i -> i }(1)<!>
fun test3() = { i -> i }(1)