12 lines
253 B
Kotlin
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.
|
|
}
|