7e4d9d9f64
Many of them have been found & minimized at FP tests/user projects ^KT-59791 Fixed
16 lines
454 B
Kotlin
Vendored
16 lines
454 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
fun <X> mySuspendable(block: (MyContinuation<X>) -> Unit): X = TODO()
|
|
|
|
interface MyContinuation<in Y> {
|
|
fun cancel(): Unit
|
|
}
|
|
|
|
fun <Z> MyContinuation<Z>.resume(value: Z) {}
|
|
|
|
fun cancelOrProceed(handler: (cancel: () -> Unit, proceed: () -> Unit) -> Unit) {
|
|
mySuspendable { x ->
|
|
// Was exception: Expected expression 'FirCallableReferenceAccessImpl' to be resolved
|
|
handler(x::cancel) { x.resume("") }
|
|
}.length
|
|
}
|