mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
7 lines
102 B
Kotlin
Vendored
7 lines
102 B
Kotlin
Vendored
// "Create class 'Foo'" "true"
|
|
|
|
fun <T> run(f: () -> T) = f()
|
|
|
|
fun test() {
|
|
run { <caret>Foo() }
|
|
} |