[NI] Support implicit invoke calls on parenthesized receivers
This commit is contained in:
@@ -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<!>) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user