Change Signature: Support implicit calls of 'invoke' and 'get'

Also drop 'operator' keyword when necessary

 #KT-22718 Fixed
This commit is contained in:
Alexey Sedunov
2018-02-06 21:17:32 +03:00
parent e38d5395df
commit fddfbf225f
35 changed files with 437 additions and 32 deletions
@@ -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)
}