Added coroutine import to front-end tests.

This commit is contained in:
Stanislav Erokhin
2016-12-15 03:16:16 +03:00
parent e014fb7181
commit 34a4159a94
7 changed files with 11 additions and 0 deletions
@@ -1,4 +1,6 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -NOTHING_TO_INLINE
import kotlin.coroutines.*
suspend fun notMember(q: Double) = 1
suspend fun String.wrongExtension(x: Any) = 1
@@ -1,5 +1,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !CHECK_TYPE
import kotlin.coroutines.*
class Controller {
suspend fun noParams() {
@@ -1,5 +1,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !CHECK_TYPE
import kotlin.coroutines.*
class Controller {
suspend fun noParams(): Unit = suspendWithCurrentContinuation {
if (hashCode() % 2 == 0) {
@@ -1,4 +1,5 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.coroutines.*
fun nonSuspend() {}
@@ -1,4 +1,6 @@
// Tail calls are not allowed to be Nothing typed. See KT-15051
import kotlin.coroutines.*
suspend fun suspendLogAndThrow(exception: Throwable): Nothing = <!SUSPENSION_CALL_MUST_BE_USED_AS_RETURN_VALUE!>suspendWithCurrentContinuation { c ->
c.resumeWithException(exception)
SUSPENDED
@@ -1,4 +1,5 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.coroutines.*
fun nonSuspend() {}
@@ -1,4 +1,5 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.coroutines.*
suspend fun baz() = 1