[NI] Support implicit invoke calls on parenthesized receivers

This commit is contained in:
Mikhail Zarechenskiy
2018-04-20 08:12:31 +03:00
parent 1e7682afc0
commit 397cc4f772
22 changed files with 211 additions and 64 deletions
@@ -0,0 +1,15 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class A {
operator fun invoke() {}
operator fun invoke(f: () -> Unit) {}
}
class B : A() {
fun bar() {
<!SUPER_IS_NOT_AN_EXPRESSION!>super<!>()
(<!SUPER_IS_NOT_AN_EXPRESSION!>super<!>)()
<!SUPER_IS_NOT_AN_EXPRESSION!>super<!> {}
(<!SUPER_IS_NOT_AN_EXPRESSION!>super<!>) {}
}
}