Added coroutine import to back-end test.

This commit is contained in:
Stanislav Erokhin
2016-12-15 03:13:39 +03:00
parent 0132f3eea7
commit e014fb7181
77 changed files with 153 additions and 0 deletions
@@ -644,6 +644,7 @@ public class KotlinTestUtils {
if (isDirectiveDefined(expectedText, "WITH_COROUTINES")) {
testFiles.add(factory.createFile(null,
"CoroutineUtil.kt",
"import kotlin.coroutines.*\n" +
"fun <T> handleResultContinuation(x: (T) -> Unit): Continuation<T> = object: Continuation<T> {\n" +
" override fun resumeWithException(exception: Throwable) {\n" +
" throw exception\n" +