Forbidden old invokeExtension convention.

This commit is contained in:
Stanislav Erokhin
2015-10-16 21:25:25 +03:00
parent fc4b0a8121
commit 7d7d37719b
26 changed files with 157 additions and 126 deletions
+1 -5
View File
@@ -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()