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