Forbidden old invokeExtension convention.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
class A {
|
||||
fun test(b: B) {
|
||||
fun test(b: A.() -> Unit) {
|
||||
<selection>this.b()</selection>
|
||||
}
|
||||
}
|
||||
|
||||
class B() {
|
||||
fun A.invoke() {}
|
||||
}
|
||||
@@ -1,9 +1,5 @@
|
||||
class A {
|
||||
fun test(b: B) {
|
||||
fun test(b: A.() -> Unit) {
|
||||
b()
|
||||
}
|
||||
}
|
||||
|
||||
class B() {
|
||||
fun A.invoke() {}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
class Bar {
|
||||
init {
|
||||
Foo()()
|
||||
}
|
||||
}
|
||||
|
||||
class Foo() {
|
||||
fun Bar.invoke() {}
|
||||
}
|
||||
|
||||
fun foobar(f: Foo) {
|
||||
<selection>Bar().f()</selection>
|
||||
Bar().f()
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
Bar().f()
|
||||
|
||||
Bar().f()
|
||||
Reference in New Issue
Block a user