Files
kotlin-fork/idea/testData/refactoring/changeSignature/GetConventionAddParameterAfter.kt
T
Alexey Sedunov fddfbf225f Change Signature: Support implicit calls of 'invoke' and 'get'
Also drop 'operator' keyword when necessary

 #KT-22718 Fixed
2018-02-09 14:17:37 +03:00

9 lines
156 B
Kotlin
Vendored

class A {
operator fun get(s: String, i: Int, b: Boolean) {}
}
fun usage(a: A) {
a["", 42, false]
A()["", 42, false]
a.get("", 42, false)
}