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

class A {
operator fun invoke(i: Int) {}
}
fun usage(a: A) {
a(42)
A()(42)
a.invoke(42)
}