Fix raw FIR building with parenthesized expression as selector

This commit is contained in:
Mikhail Glukhikh
2019-12-24 13:30:04 +03:00
parent a18fecb05f
commit a8a50fa657
21 changed files with 115 additions and 34 deletions
@@ -1,5 +1,5 @@
fun test1(f: String.() -> Unit) {
<!INAPPLICABLE_CANDIDATE!>(f)()<!>
(<!INAPPLICABLE_CANDIDATE!>f<!>)()
<!INAPPLICABLE_CANDIDATE!>f<!>()
}
@@ -7,5 +7,5 @@ fun test1(f: String.() -> Unit) {
fun test2(f: (Int) -> Int) {
1.<!UNRESOLVED_REFERENCE!>f<!>(2)
2.<!UNRESOLVED_REFERENCE!>(f)(2)<!>
2.(<!UNRESOLVED_REFERENCE!>f<!>)(2)
}
@@ -6,8 +6,8 @@ fun test1() {
}
fun test2(f: String.(Int) -> Unit) {
11.<!UNRESOLVED_REFERENCE!>(f)(1)<!>
11.<!UNRESOLVED_REFERENCE!>(f)()<!>
11.(<!UNRESOLVED_REFERENCE!>f<!>)(1)
11.(<!UNRESOLVED_REFERENCE!>f<!>)()
}
fun test3() {