[TEST] Drop remaining tests of experimental coroutines
This commit is contained in:
-8
@@ -1,8 +0,0 @@
|
|||||||
// !LANGUAGE: +ReleaseCoroutines
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
import kotlin.coroutines.experimental.coroutineContext
|
|
||||||
|
|
||||||
suspend fun test() {
|
|
||||||
coroutineContext
|
|
||||||
}
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
// !LANGUAGE: +ReleaseCoroutines
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
import kotlin.coroutines.experimental.coroutineContext
|
|
||||||
|
|
||||||
suspend fun test() {
|
|
||||||
<!UNSUPPORTED!>coroutineContext<!>
|
|
||||||
}
|
|
||||||
-38
@@ -1,38 +0,0 @@
|
|||||||
// !API_VERSION: 1.2
|
|
||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
||||||
// !LANGUAGE: +ReleaseCoroutines
|
|
||||||
// !WITH_NEW_INFERENCE
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
suspend fun dummy() {}
|
|
||||||
|
|
||||||
// TODO: Forbid
|
|
||||||
fun builder(c: suspend () -> Unit) {}
|
|
||||||
|
|
||||||
suspend fun test1() {
|
|
||||||
kotlin.coroutines.coroutineContext
|
|
||||||
|
|
||||||
kotlin.coroutines.experimental.coroutineContext
|
|
||||||
|
|
||||||
suspend {}()
|
|
||||||
|
|
||||||
dummy()
|
|
||||||
|
|
||||||
val c: suspend () -> Unit = {}
|
|
||||||
c()
|
|
||||||
|
|
||||||
builder {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun test2() {
|
|
||||||
kotlin.coroutines.experimental.buildSequence<Int> {
|
|
||||||
yield(1)
|
|
||||||
}
|
|
||||||
kotlin.sequences.buildSequence<Int> {
|
|
||||||
yield(1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
suspend fun test3(): Unit = kotlin.coroutines.experimental.suspendCoroutine { _ -> Unit }
|
|
||||||
|
|
||||||
suspend fun test4(): Unit = kotlin.coroutines.suspendCoroutine { _ -> Unit }
|
|
||||||
-38
@@ -1,38 +0,0 @@
|
|||||||
// !API_VERSION: 1.2
|
|
||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
||||||
// !LANGUAGE: +ReleaseCoroutines
|
|
||||||
// !WITH_NEW_INFERENCE
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>suspend<!> fun dummy() {}
|
|
||||||
|
|
||||||
// TODO: Forbid
|
|
||||||
fun builder(c: <!UNSUPPORTED!>suspend<!> () -> Unit) {}
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>suspend<!> fun test1() {
|
|
||||||
kotlin.coroutines.<!UNRESOLVED_REFERENCE!>coroutineContext<!>
|
|
||||||
|
|
||||||
kotlin.coroutines.experimental.<!UNSUPPORTED!>coroutineContext<!>
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>suspend<!> {}()
|
|
||||||
|
|
||||||
dummy()
|
|
||||||
|
|
||||||
val c: <!UNSUPPORTED!>suspend<!> () -> Unit = {}
|
|
||||||
c()
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>builder<!> {}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun test2() {
|
|
||||||
kotlin.coroutines.experimental.<!DEPRECATION, UNSUPPORTED!>buildSequence<!><Int> {
|
|
||||||
<!DEPRECATION!>yield<!>(1)
|
|
||||||
}
|
|
||||||
kotlin.sequences.<!UNRESOLVED_REFERENCE!>buildSequence<!><Int> {
|
|
||||||
<!UNRESOLVED_REFERENCE!>yield<!>(1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>suspend<!> fun test3(): Unit = kotlin.coroutines.experimental.<!DEPRECATION!>suspendCoroutine<!> { _ -> Unit }
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>suspend<!> fun test4(): Unit = kotlin.coroutines.<!UNRESOLVED_REFERENCE!>suspendCoroutine<!> { <!OI;CANNOT_INFER_PARAMETER_TYPE!>_<!> -> Unit }
|
|
||||||
Vendored
-94
@@ -1,94 +0,0 @@
|
|||||||
// !LANGUAGE: -ReleaseCoroutines -ExperimentalBuilderInference
|
|
||||||
// !DIAGNOSTICS: -EXPERIMENTAL_FEATURE_WARNING
|
|
||||||
// !WITH_NEW_INFERENCE
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
@kotlin.coroutines.experimental.RestrictsSuspension
|
|
||||||
class RestrictedController<T> {
|
|
||||||
suspend fun yield(x: T) {}
|
|
||||||
|
|
||||||
suspend fun anotherYield(x: T) {
|
|
||||||
yield(x)
|
|
||||||
this.yield(x)
|
|
||||||
|
|
||||||
yield2(x)
|
|
||||||
this.yield2(x)
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
yield(x)
|
|
||||||
this@with.yield(x)
|
|
||||||
|
|
||||||
yield2(x)
|
|
||||||
this@with.yield2(x)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun <T> buildSequence(c: suspend RestrictedController<T>.() -> Unit) {}
|
|
||||||
suspend fun <T> RestrictedController<T>.yield2(x: T) {}
|
|
||||||
|
|
||||||
fun test() {
|
|
||||||
buildSequence<Int> a@{
|
|
||||||
buildSequence<Int> b@{
|
|
||||||
yield(1)
|
|
||||||
yield2(1)
|
|
||||||
this@b.yield(1)
|
|
||||||
this@b.yield2(1)
|
|
||||||
|
|
||||||
this@a.yield(2) // Should be error
|
|
||||||
this@a.yield2(2) // Should be error
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
yield(3)
|
|
||||||
this@with.yield(3)
|
|
||||||
|
|
||||||
yield2(3)
|
|
||||||
this@with.yield2(3)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSequence<Int> {
|
|
||||||
buildSequence<String> {
|
|
||||||
yield("a")
|
|
||||||
yield2("a")
|
|
||||||
this.yield("b")
|
|
||||||
this.yield2("b")
|
|
||||||
|
|
||||||
yield(1) // Should be error
|
|
||||||
yield2(1) // Should be error
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
yield("")
|
|
||||||
this@with.yield("")
|
|
||||||
|
|
||||||
yield2("")
|
|
||||||
this@with.yield2("")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSequence<Int> a@{
|
|
||||||
yield(1)
|
|
||||||
yield2(1)
|
|
||||||
buildSequence {
|
|
||||||
yield("")
|
|
||||||
yield2("")
|
|
||||||
this@a.yield(1)
|
|
||||||
this@a.yield2(1)
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
yield("")
|
|
||||||
this@with.yield("")
|
|
||||||
|
|
||||||
yield2("")
|
|
||||||
this@with.yield2("")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSequence<String> {
|
|
||||||
yield("")
|
|
||||||
RestrictedController<String>().yield("1")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Vendored
-94
@@ -1,94 +0,0 @@
|
|||||||
// !LANGUAGE: -ReleaseCoroutines -ExperimentalBuilderInference
|
|
||||||
// !DIAGNOSTICS: -EXPERIMENTAL_FEATURE_WARNING
|
|
||||||
// !WITH_NEW_INFERENCE
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
@kotlin.coroutines.experimental.RestrictsSuspension
|
|
||||||
class RestrictedController<T> {
|
|
||||||
suspend fun yield(<!UNUSED_PARAMETER!>x<!>: T) {}
|
|
||||||
|
|
||||||
suspend fun anotherYield(x: T) {
|
|
||||||
yield(x)
|
|
||||||
this.yield(x)
|
|
||||||
|
|
||||||
yield2(x)
|
|
||||||
this.yield2(x)
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>(x)
|
|
||||||
this@with.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>(x)
|
|
||||||
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>(x)
|
|
||||||
this@with.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>(x)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun <T> buildSequence(<!UNUSED_PARAMETER!>c<!>: suspend RestrictedController<T>.() -> Unit) {}
|
|
||||||
suspend fun <T> RestrictedController<T>.yield2(<!UNUSED_PARAMETER!>x<!>: T) {}
|
|
||||||
|
|
||||||
fun test() {
|
|
||||||
buildSequence<Int> a@{
|
|
||||||
buildSequence<Int> b@{
|
|
||||||
yield(1)
|
|
||||||
yield2(1)
|
|
||||||
this@b.yield(1)
|
|
||||||
this@b.yield2(1)
|
|
||||||
|
|
||||||
this@a.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>(2) // Should be error
|
|
||||||
this@a.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>(2) // Should be error
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>(3)
|
|
||||||
this@with.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>(3)
|
|
||||||
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>(3)
|
|
||||||
this@with.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>(3)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSequence<Int> {
|
|
||||||
buildSequence<String> {
|
|
||||||
yield("a")
|
|
||||||
yield2("a")
|
|
||||||
this.yield("b")
|
|
||||||
this.yield2("b")
|
|
||||||
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>(1) // Should be error
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>(1) // Should be error
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>("")
|
|
||||||
this@with.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>("")
|
|
||||||
|
|
||||||
<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>("")
|
|
||||||
this@with.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>("")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSequence<Int> a@{
|
|
||||||
yield(1)
|
|
||||||
yield2(1)
|
|
||||||
buildSequence {
|
|
||||||
yield("")
|
|
||||||
yield2("")
|
|
||||||
this@a.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>(1)
|
|
||||||
this@a.<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>(1)
|
|
||||||
|
|
||||||
with(this) {
|
|
||||||
<!OI;ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>("")
|
|
||||||
this@with.<!NI;DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, NI;DEBUG_INFO_UNRESOLVED_WITH_TARGET, NI;UNRESOLVED_REFERENCE, OI;ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>("")
|
|
||||||
|
|
||||||
<!OI;ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>("")
|
|
||||||
this@with.<!NI;UNRESOLVED_REFERENCE_WRONG_RECEIVER, OI;ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield2<!>("")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSequence<String> {
|
|
||||||
yield("")
|
|
||||||
RestrictedController<String>().<!ILLEGAL_RESTRICTED_SUSPENDING_FUNCTION_CALL!>yield<!>("1")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Vendored
-16
@@ -1,16 +0,0 @@
|
|||||||
// FIR_IDENTICAL
|
|
||||||
// !API_VERSION: 1.1
|
|
||||||
// !LANGUAGE: +Coroutines -ReleaseCoroutines
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
import kotlin.coroutines.experimental.*
|
|
||||||
import kotlin.coroutines.experimental.intrinsics.*
|
|
||||||
|
|
||||||
suspend fun foo(): Unit = suspendCoroutine {
|
|
||||||
it.resume(Unit)
|
|
||||||
}
|
|
||||||
|
|
||||||
suspend fun bar(): Unit = suspendCoroutineOrReturn {
|
|
||||||
it.resume(Unit)
|
|
||||||
COROUTINE_SUSPENDED
|
|
||||||
}
|
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
// !API_VERSION: 1.0
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
import kotlin.coroutines.experimental.*
|
|
||||||
import kotlin.coroutines.experimental.intrinsics.*
|
|
||||||
|
|
||||||
suspend fun foo(): Unit = suspendCoroutine {
|
|
||||||
it.resume(Unit)
|
|
||||||
}
|
|
||||||
|
|
||||||
suspend fun bar(): Unit = suspendCoroutineUninterceptedOrReturn {
|
|
||||||
it.resume(Unit)
|
|
||||||
COROUTINE_SUSPENDED
|
|
||||||
}
|
|
||||||
Vendored
-14
@@ -1,14 +0,0 @@
|
|||||||
// !API_VERSION: 1.0
|
|
||||||
// SKIP_TXT
|
|
||||||
|
|
||||||
import kotlin.coroutines.experimental.*
|
|
||||||
import kotlin.coroutines.experimental.intrinsics.*
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>suspend<!> fun foo(): Unit = <!UNRESOLVED_REFERENCE!>suspendCoroutine<!> {
|
|
||||||
<!UNRESOLVED_REFERENCE!>it<!>.<!DEBUG_INFO_MISSING_UNRESOLVED!>resume<!>(Unit)
|
|
||||||
}
|
|
||||||
|
|
||||||
<!UNSUPPORTED!>suspend<!> fun bar(): Unit = <!UNRESOLVED_REFERENCE!>suspendCoroutineUninterceptedOrReturn<!> {
|
|
||||||
<!UNRESOLVED_REFERENCE!>it<!>.<!DEBUG_INFO_MISSING_UNRESOLVED!>resume<!>(Unit)
|
|
||||||
<!UNRESOLVED_REFERENCE!>COROUTINE_SUSPENDED<!>
|
|
||||||
}
|
|
||||||
-10
@@ -1,10 +0,0 @@
|
|||||||
// FIR_IDENTICAL
|
|
||||||
// !DIAGNOSTICS: -DEPRECATION
|
|
||||||
// Tail calls are not allowed to be Nothing typed. See KT-15051
|
|
||||||
import kotlin.coroutines.experimental.*
|
|
||||||
import kotlin.coroutines.experimental.intrinsics.*
|
|
||||||
|
|
||||||
suspend fun suspendLogAndThrow(exception: Throwable): Nothing = suspendCoroutineUninterceptedOrReturn { c ->
|
|
||||||
c.resumeWithException(exception)
|
|
||||||
COROUTINE_SUSPENDED
|
|
||||||
}
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
package
|
|
||||||
|
|
||||||
public suspend fun suspendLogAndThrow(/*0*/ exception: kotlin.Throwable): kotlin.Nothing
|
|
||||||
Generated
-36
@@ -32427,18 +32427,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn_1_2.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn_1_2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCoroutineUnavailableWithNewAPI.kt")
|
|
||||||
public void testSuspendCoroutineUnavailableWithNewAPI() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineUnavailableWithNewAPI.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCoroutineUnavailableWithOldAPI.kt")
|
|
||||||
public void testSuspendCoroutineUnavailableWithOldAPI() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineUnavailableWithOldAPI.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspendCovarianJavaOverride.kt")
|
@TestMetadata("suspendCovarianJavaOverride.kt")
|
||||||
public void testSuspendCovarianJavaOverride() throws Exception {
|
public void testSuspendCovarianJavaOverride() throws Exception {
|
||||||
@@ -33006,18 +32994,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/coroutines/release"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/coroutines/release"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("coroutineContext.kt")
|
|
||||||
public void testCoroutineContext() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/release/coroutineContext.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("languageVersionIsNotEqualToApiVersion.kt")
|
|
||||||
public void testLanguageVersionIsNotEqualToApiVersion() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/release/languageVersionIsNotEqualToApiVersion.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspend.kt")
|
@TestMetadata("suspend.kt")
|
||||||
public void testSuspend() throws Exception {
|
public void testSuspend() throws Exception {
|
||||||
@@ -33058,12 +33034,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/notRelatedFun.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/notRelatedFun.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("outerYield_1_2.kt")
|
|
||||||
public void testOuterYield_1_2() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/outerYield_1_2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("outerYield_1_3.kt")
|
@TestMetadata("outerYield_1_3.kt")
|
||||||
public void testOuterYield_1_3() throws Exception {
|
public void testOuterYield_1_3() throws Exception {
|
||||||
@@ -33204,12 +33174,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/tailCalls/localFunctions.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/tailCalls/localFunctions.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("nothingTypedSuspendFunction_1_2.kt")
|
|
||||||
public void testNothingTypedSuspendFunction_1_2() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/tailCalls/nothingTypedSuspendFunction_1_2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("nothingTypedSuspendFunction_1_3.kt")
|
@TestMetadata("nothingTypedSuspendFunction_1_3.kt")
|
||||||
public void testNothingTypedSuspendFunction_1_3() throws Exception {
|
public void testNothingTypedSuspendFunction_1_3() throws Exception {
|
||||||
|
|||||||
-36
@@ -32331,18 +32331,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn_1_2.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn_1_2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCoroutineUnavailableWithNewAPI.kt")
|
|
||||||
public void testSuspendCoroutineUnavailableWithNewAPI() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineUnavailableWithNewAPI.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCoroutineUnavailableWithOldAPI.kt")
|
|
||||||
public void testSuspendCoroutineUnavailableWithOldAPI() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineUnavailableWithOldAPI.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspendCovarianJavaOverride.kt")
|
@TestMetadata("suspendCovarianJavaOverride.kt")
|
||||||
public void testSuspendCovarianJavaOverride() throws Exception {
|
public void testSuspendCovarianJavaOverride() throws Exception {
|
||||||
@@ -32910,18 +32898,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/coroutines/release"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/coroutines/release"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("coroutineContext.kt")
|
|
||||||
public void testCoroutineContext() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/release/coroutineContext.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("languageVersionIsNotEqualToApiVersion.kt")
|
|
||||||
public void testLanguageVersionIsNotEqualToApiVersion() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/release/languageVersionIsNotEqualToApiVersion.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspend.kt")
|
@TestMetadata("suspend.kt")
|
||||||
public void testSuspend() throws Exception {
|
public void testSuspend() throws Exception {
|
||||||
@@ -32962,12 +32938,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/notRelatedFun.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/notRelatedFun.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("outerYield_1_2.kt")
|
|
||||||
public void testOuterYield_1_2() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/restrictSuspension/outerYield_1_2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("outerYield_1_3.kt")
|
@TestMetadata("outerYield_1_3.kt")
|
||||||
public void testOuterYield_1_3() throws Exception {
|
public void testOuterYield_1_3() throws Exception {
|
||||||
@@ -33108,12 +33078,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/tailCalls/localFunctions.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/tailCalls/localFunctions.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("nothingTypedSuspendFunction_1_2.kt")
|
|
||||||
public void testNothingTypedSuspendFunction_1_2() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/tailCalls/nothingTypedSuspendFunction_1_2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("nothingTypedSuspendFunction_1_3.kt")
|
@TestMetadata("nothingTypedSuspendFunction_1_3.kt")
|
||||||
public void testNothingTypedSuspendFunction_1_3() throws Exception {
|
public void testNothingTypedSuspendFunction_1_3() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user