Do not add receiver for function expression by expected type.
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
fun foo(<!UNUSED_PARAMETER!>f<!>: String.() -> Int) {}
|
||||
val test = foo(<!TYPE_MISMATCH(String.\(\) -> Int; \(\) -> [ERROR : Error function type])!>fun () = <!UNRESOLVED_REFERENCE!>length<!><!>)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
public val test: kotlin.Unit
|
||||
public fun foo(/*0*/ f: kotlin.String.() -> kotlin.Int): kotlin.Unit
|
||||
Reference in New Issue
Block a user