Disable callable references to suspend functions in 1.2
#KT-25604: Fixed
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// !LANGUAGE: +ReleaseCoroutines
|
||||
// !API_VERSION: 1.3
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: test.kt
|
||||
// COMMON_COROUTINES_TEST
|
||||
|
||||
inline suspend fun foo(x: suspend () -> String) = x()
|
||||
|
||||
// FILE: box.kt
|
||||
// WITH_RUNTIME
|
||||
// WITH_COROUTINES
|
||||
// COMMON_COROUTINES_TEST
|
||||
|
||||
import COROUTINES_PACKAGE.*
|
||||
import COROUTINES_PACKAGE.intrinsics.*
|
||||
import kotlin.coroutines.*
|
||||
import kotlin.coroutines.intrinsics.*
|
||||
|
||||
fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(object: helpers.ContinuationAdapter<Unit>() {
|
||||
|
||||
Reference in New Issue
Block a user