Reserve "async* {}", extend the quick-fix

This commit is contained in:
Andrey Breslav
2015-12-21 06:52:49 +03:00
parent 45074841a4
commit a7e7d53e2b
13 changed files with 102 additions and 8 deletions
+5
View File
@@ -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* {}
}
+5
View File
@@ -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 * {}
}