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 % {}
|
||||
}
|
||||
@@ -1,5 +1,18 @@
|
||||
package
|
||||
|
||||
public fun async(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
public fun test(): kotlin.Unit
|
||||
public fun test(/*0*/ foo: kotlin.Any): kotlin.Unit
|
||||
public infix fun kotlin.Any.async(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
|
||||
public object async {
|
||||
private constructor async()
|
||||
public final operator fun div(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun minus(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
public final operator fun mod(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
public final operator fun plus(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
public final operator fun times(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user