Revert "Quick fix for deprecated async syntax"

This reverts commit afc1e24571.
This commit is contained in:
Denis Zharkov
2016-05-19 14:07:24 +03:00
parent 1af9321c20
commit 3ede8f97e6
15 changed files with 9 additions and 202 deletions
-20
View File
@@ -74,23 +74,3 @@ val x = C() willBeInfix 1
fun infixTest() {
arrayListOf(1, 2, 3) map { it }
}
fun async(f: () -> Unit) {}
infix fun Any.async(f: () -> Unit) {}
fun test(foo: Any) {
async { }
async /**/ { }
foo async { }
async() { }
async({ })
foo async ({ })
foo async fun () {}
foo async (fun () {})
async (fun () {})
}
-20
View File
@@ -73,23 +73,3 @@ val x = C() willBeInfix 1
fun infixTest() {
arrayListOf(1, 2, 3).map { it }
}
fun async(f: () -> Unit) {}
infix fun Any.async(f: () -> Unit) {}
fun test(foo: Any) {
async() { }
async() /**/ { }
foo async ({ })
async() { }
async({ })
foo async ({ })
foo async (fun () {})
foo async (fun () {})
async (fun () {})
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
infix fun Any.async(f: () -> Unit) = f()
fun test(foo: Any) {
foo <caret>async { }
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
infix fun Any.async(f: () -> Unit) = f()
fun test(foo: Any) {
foo <caret>async ({ })
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
infix fun Any.async(f: () -> Unit) = f()
fun test(foo: Any) {
foo async<caret> fun () {}
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
infix fun Any.async(f: () -> Unit) = f()
fun test(foo: Any) {
foo async<caret> (fun () {})
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
fun async(f: () -> Unit) {}
fun test() {
asy<caret>nc { }
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
fun async(f: () -> Unit) {}
fun test() {
asy<caret>nc() { }
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
fun async(f: () -> Unit) {}
fun test() {
async<caret> /**/ { }
}
@@ -1,6 +0,0 @@
// "Migrate unsupported async syntax" "true"
fun async(f: () -> Unit) {}
fun test() {
async<caret>() /**/ { }
}