Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/afterInLambda.kt
T

12 lines
253 B
Kotlin

// "Create function 'foo'" "true"
fun run<T>(f: () -> T) = f()
fun test() {
run { foo() }
}
fun foo(): Any {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}