Change Signature: Support implicit calls of 'invoke' and 'get'
Also drop 'operator' keyword when necessary #KT-22718 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
operator fun invoke(i: Int, s: String) {}
|
||||
}
|
||||
|
||||
fun usage(a: A) {
|
||||
a(42, "")
|
||||
A()(42, "")
|
||||
a.invoke(42, "")
|
||||
}
|
||||
Reference in New Issue
Block a user