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

7 lines
161 B
Kotlin
Vendored

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