Support new suspend convention in JVM backend partially

Stack-unwinding does not work yet

 #KT-14924 In Progress
This commit is contained in:
Denis Zharkov
2016-11-24 18:43:01 +03:00
parent 2c3b0aeddb
commit 1f98accad2
98 changed files with 366 additions and 190 deletions
@@ -5,7 +5,7 @@ fun async(coroutine x: Controller.() -> Continuation<Unit>) {
}
class Controller {
suspend fun step(param: Int, next: Continuation<Int>) {
suspend fun step(param: Int) = suspendWithCurrentContinuation<Int> { next ->
next.resume(param + 1)
}
}