Forbidden old invokeExtension convention.
This commit is contained in:
Vendored
+1
-4
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user