[NI] Fix resolve of lambdas with expected function type with receiver

#KT-30245
This commit is contained in:
Dmitriy Novozhilov
2020-01-15 17:24:25 +03:00
parent 7733611c47
commit a3037a081e
5 changed files with 26 additions and 21 deletions
@@ -1,3 +1,3 @@
// !WITH_NEW_INFERENCE
fun foo(<!UNUSED_PARAMETER!>f<!>: String.() -> Int) {}
val test = foo(<!OI;TYPE_MISMATCH!>fun () = <!UNRESOLVED_REFERENCE!>length<!><!>)
val test = foo(<!TYPE_MISMATCH!>fun <!NI;EXPECTED_PARAMETERS_NUMBER_MISMATCH!>()<!> = <!UNRESOLVED_REFERENCE!>length<!><!>)