FIR: allow fun (x: T) ... as an instance of T.() -> ...
and disallow > 1 implicit parameters in lambdas.
This commit is contained in:
+1
-1
@@ -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<!>)
|
||||
|
||||
Reference in New Issue
Block a user