Reserve "async* {}", extend the quick-fix
This commit is contained in:
@@ -20,4 +20,26 @@ fun test(foo: Any) {
|
||||
foo async (fun () {})
|
||||
|
||||
async (fun () {})
|
||||
}
|
||||
|
||||
object async {
|
||||
operator fun plus(f: () -> Unit) = f()
|
||||
operator fun minus(f: () -> Unit) = f()
|
||||
operator fun times(f: () -> Unit) = f()
|
||||
operator fun div(f: () -> Unit) = f()
|
||||
operator fun mod(f: () -> Unit) = f()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
<!UNSUPPORTED!>async<!>+ {}
|
||||
<!UNSUPPORTED!>async<!>- {}
|
||||
<!UNSUPPORTED!>async<!>* {}
|
||||
<!UNSUPPORTED!>async<!>/ {}
|
||||
<!UNSUPPORTED!>async<!>% {}
|
||||
|
||||
async + {}
|
||||
async - {}
|
||||
async * {}
|
||||
async / {}
|
||||
async % {}
|
||||
}
|
||||
Reference in New Issue
Block a user