Files
kotlin-fork/compiler/testData/sinceKotlinInfo/suspendFun.kt
T
2017-01-13 11:53:52 +03:00

17 lines
357 B
Kotlin
Vendored

package test
suspend fun topLevel() {}
class Foo {
constructor(block: suspend () -> Unit)
suspend fun member() {}
}
fun async1(block: suspend () -> Unit) {}
fun (suspend () -> Unit).async2() {}
fun async3(): suspend () -> Unit = null!!
fun async4(): Map<Int, suspend () -> Unit>? = null
val (suspend () -> Unit).asyncVal: () -> Unit get() = {}