[FIR] Fix 1.(fun Int.() = 1)() call fir conversion

This commit is contained in:
Ivan Kochurkin
2021-11-23 22:47:36 +03:00
committed by Space
parent 2fd8119a10
commit 9f8387c76a
11 changed files with 45 additions and 31 deletions
@@ -2,11 +2,11 @@ class A(val x: (String.() -> Unit)?)
fun test(a: A) {
if (a.x != null) {
"".(<!FUNCTION_EXPECTED!>a.x<!>)()
"".(a.x)()
a.x("") // todo
(a.x)("")
}
"".(<!FUNCTION_EXPECTED!>a.x<!>)()
"".<!UNSAFE_IMPLICIT_INVOKE_CALL!>(a.x)<!>()
a.<!UNSAFE_IMPLICIT_INVOKE_CALL!>x<!>("")
<!UNSAFE_IMPLICIT_INVOKE_CALL!>(a.x)<!>("")