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(s: String, i: Int, b: Boolean) {}
|
||||
}
|
||||
|
||||
fun usage(a: A) {
|
||||
a("", 42, false)
|
||||
A()("", 42, false)
|
||||
a.invoke("", 42, false)
|
||||
}
|
||||
Reference in New Issue
Block a user