[FIR] Implement FUNCTION_EXPECTED

This commit is contained in:
Ivan Kochurkin
2021-06-29 22:06:44 +03:00
parent 263e40e753
commit 2574dc907c
32 changed files with 146 additions and 58 deletions
@@ -2,11 +2,11 @@ class A(val x: (String.() -> Unit)?)
fun test(a: A) {
if (a.x != null) {
"".(<!UNRESOLVED_REFERENCE!>a.x<!>)()
"".(<!FUNCTION_EXPECTED!>a.x<!>)()
a.x("") // todo
(a.x)("")
}
"".(<!UNRESOLVED_REFERENCE!>a.x<!>)()
"".(<!FUNCTION_EXPECTED!>a.x<!>)()
a.<!UNSAFE_IMPLICIT_INVOKE_CALL!>x<!>("")
<!UNSAFE_IMPLICIT_INVOKE_CALL!>(a.x)<!>("")