Files
kotlin-fork/idea/testData/intentions/conventionNameCalls/replaceInvoke/invokeInExpression.kt
T
2015-12-17 11:11:27 +03:00

10 lines
230 B
Kotlin
Vendored

fun <T> doSomething(a: T) {}
fun test() {
class Test {
operator fun invoke(a: Int, vararg b: String, fn: () -> Unit): String = "test"
}
val test = Test()
doSomething(test.i<caret>nvoke(1, "a", "b") { })
}