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 get(i: Int) {}
}
fun usage(a: A) {
a[42]
A()[42]
a.get(42)
}