Read old suspend functions in 1.3

This commit is contained in:
Ilmir Usmanov
2018-07-05 19:42:23 +03:00
parent 6b73e528ce
commit 5b7e099842
14 changed files with 147 additions and 16 deletions
@@ -0,0 +1,19 @@
// FILE: A.kt
// LANGUAGE_VERSION: 1.2
suspend fun dummy() = "OK"
// FILE: B.kt
// LANGUAGE_VERSION: 1.3
import kotlin.coroutines.experimental.*
fun box(): String {
return dummy(object : Continuation<String> {
override val context = EmptyCoroutineContext
override fun resume(value: String) {
}
override fun resumeWithException(exception: Throwable) {
throw exception
}
}) as String
}