Files
kotlin-fork/idea/testData/intentions/operatorToFunction/functionCallWithSingleLambda.kt.after
T

7 lines
162 B
Plaintext
Vendored

class Mocha() {
operator fun invoke(f: (Int) -> String) {}
}
fun main() {
val mocha = Mocha()
val testing = mocha.invoke { x: Int -> "hello world" }
}