944b0d058a
- Calling suspend functions is allowed - Presence of suspend function type still makes declaration unusable unless it belongs to a value parameter as a top-level type containing less then three parameters Still, warning should be emitted because they will become unsupported in 1.4 #KT-25683 In Progress
17 lines
265 B
Kotlin
Vendored
17 lines
265 B
Kotlin
Vendored
suspend fun callRelease() {
|
|
builder {}
|
|
builder2 { }
|
|
|
|
val x: suspend (Int) -> Unit = {}
|
|
x.start()
|
|
|
|
dummy()
|
|
C().dummy()
|
|
WithNested.Nested().dummy()
|
|
WithInner().Inner().dummy()
|
|
|
|
suspendAcceptsSuspend {
|
|
callRelease()
|
|
}
|
|
}
|