Files
kotlin-fork/idea/testData/refactoring/changeSignature/GetConventionAddParameterBefore.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
130 B
Kotlin
Vendored

class A {
operator fun <caret>get(s: String, i: Int) {}
}
fun usage(a: A) {
a["", 42]
A()["", 42]
a.get("", 42)
}