Quick fix for deprecated async syntax
This commit is contained in:
committed by
Andrey Breslav
parent
01095bc652
commit
afc1e24571
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
infix fun Any.async(f: () -> Unit) = f()
|
||||
|
||||
fun test(foo: Any) {
|
||||
foo <caret>async { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
infix fun Any.async(f: () -> Unit) = f()
|
||||
|
||||
fun test(foo: Any) {
|
||||
foo <caret>async ({ })
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
infix fun Any.async(f: () -> Unit) = f()
|
||||
|
||||
fun test(foo: Any) {
|
||||
foo async<caret> fun () {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
infix fun Any.async(f: () -> Unit) = f()
|
||||
|
||||
fun test(foo: Any) {
|
||||
foo async<caret> (fun () {})
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
fun async(f: () -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
asy<caret>nc { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
fun async(f: () -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
asy<caret>nc() { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
fun async(f: () -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
async<caret> /**/ { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Migrate unsupported async syntax" "true"
|
||||
fun async(f: () -> Unit) {}
|
||||
|
||||
fun test() {
|
||||
async<caret>() /**/ { }
|
||||
}
|
||||
Reference in New Issue
Block a user