Revert "'async' reserved in front of function literals"

This reverts commit 6155d836a5.
This commit is contained in:
Denis Zharkov
2016-05-19 14:04:21 +03:00
parent 7d3333e86e
commit 1af9321c20
4 changed files with 0 additions and 44 deletions
-23
View File
@@ -1,23 +0,0 @@
fun async(f: () -> Unit) {
f()
}
infix fun Any.async(f: () -> Unit) = f()
fun test(foo: Any) {
<!UNSUPPORTED!>async<!> { }
`async` { }
<!UNSUPPORTED!>async<!> /**/ { }
foo <!UNSUPPORTED!>async<!> { }
async() { }
async({ })
foo async ({ })
foo <!UNSUPPORTED!>async<!> fun () {}
foo `async` fun () {}
foo async (fun () {})
async (fun () {})
}
-5
View File
@@ -1,5 +0,0 @@
package
public fun async(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
public fun test(/*0*/ foo: kotlin.Any): kotlin.Unit
public infix fun kotlin.Any.async(/*0*/ f: () -> kotlin.Unit): kotlin.Unit