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

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