21 lines
355 B
Kotlin
Vendored
21 lines
355 B
Kotlin
Vendored
fun async(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
infix fun Any.async(f: () -> Unit) = f()
|
|
|
|
fun test(foo: Any) {
|
|
<!UNSUPPORTED!>async<!> { }
|
|
<!UNSUPPORTED!>async<!> /**/ { }
|
|
foo <!UNSUPPORTED!>async<!> { }
|
|
|
|
async() { }
|
|
|
|
async({ })
|
|
foo async ({ })
|
|
|
|
foo <!UNSUPPORTED!>async<!> fun () {}
|
|
foo async (fun () {})
|
|
|
|
async (fun () {})
|
|
} |