FIR: allow fun (x: T) ... as an instance of T.() -> ...

and disallow > 1 implicit parameters in lambdas.
This commit is contained in:
pyos
2021-02-02 18:13:39 +01:00
committed by TeamCityServer
parent 354acc1fd5
commit 0a25550fc2
7 changed files with 15 additions and 14 deletions
@@ -1,3 +1,3 @@
// !WITH_NEW_INFERENCE
fun foo(f: String.() -> Int) {}
val test = foo(fun () = <!UNRESOLVED_REFERENCE!>length<!>)
val test = foo(fun () = <!ARGUMENT_TYPE_MISMATCH, UNRESOLVED_REFERENCE!>length<!>)