Reserve "async* {}", extend the quick-fix
This commit is contained in:
@@ -79,6 +79,9 @@ fun infixTest() {
|
||||
|
||||
fun async(f: () -> Unit) {}
|
||||
infix fun Any.async(f: () -> Unit) {}
|
||||
object async {
|
||||
operator fun times(f: () -> Unit) = f()
|
||||
}
|
||||
|
||||
fun test(foo: Any) {
|
||||
async { }
|
||||
@@ -94,5 +97,7 @@ fun test(foo: Any) {
|
||||
foo async (fun () {})
|
||||
|
||||
async (fun () {})
|
||||
|
||||
async* {}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +78,9 @@ fun infixTest() {
|
||||
|
||||
fun async(f: () -> Unit) {}
|
||||
infix fun Any.async(f: () -> Unit) {}
|
||||
object async {
|
||||
operator fun times(f: () -> Unit) = f()
|
||||
}
|
||||
|
||||
fun test(foo: Any) {
|
||||
async() { }
|
||||
@@ -93,5 +96,7 @@ fun test(foo: Any) {
|
||||
foo async (fun () {})
|
||||
|
||||
async (fun () {})
|
||||
|
||||
async * {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user