Added coroutine import to front-end tests.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -NOTHING_TO_INLINE
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -NOTHING_TO_INLINE
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
|
||||||
suspend fun notMember(q: Double) = 1
|
suspend fun notMember(q: Double) = 1
|
||||||
|
|
||||||
suspend fun String.wrongExtension(x: Any) = 1
|
suspend fun String.wrongExtension(x: Any) = 1
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
// !CHECK_TYPE
|
// !CHECK_TYPE
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
|
||||||
class Controller {
|
class Controller {
|
||||||
suspend fun noParams() {
|
suspend fun noParams() {
|
||||||
|
|
||||||
|
|||||||
+2
@@ -1,5 +1,7 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
// !CHECK_TYPE
|
// !CHECK_TYPE
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
|
||||||
class Controller {
|
class Controller {
|
||||||
suspend fun noParams(): Unit = suspendWithCurrentContinuation {
|
suspend fun noParams(): Unit = suspendWithCurrentContinuation {
|
||||||
if (hashCode() % 2 == 0) {
|
if (hashCode() % 2 == 0) {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
|
||||||
fun nonSuspend() {}
|
fun nonSuspend() {}
|
||||||
|
|
||||||
|
|||||||
+2
@@ -1,4 +1,6 @@
|
|||||||
// Tail calls are not allowed to be Nothing typed. See KT-15051
|
// 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 ->
|
suspend fun suspendLogAndThrow(exception: Throwable): Nothing = <!SUSPENSION_CALL_MUST_BE_USED_AS_RETURN_VALUE!>suspendWithCurrentContinuation { c ->
|
||||||
c.resumeWithException(exception)
|
c.resumeWithException(exception)
|
||||||
SUSPENDED
|
SUSPENDED
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
|
||||||
fun nonSuspend() {}
|
fun nonSuspend() {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
|
||||||
suspend fun baz() = 1
|
suspend fun baz() = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user