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,12 +1,9 @@
package foo
class A
class B {
fun A.invoke(i: Int) = i
}
fun box(): Boolean {
val a = A()
val b = B()
val b = fun A.(i: Int) = i
return a.(b)(1) == 1
}