Minor. Change test to use the feature instead of suppressing error

This commit is contained in:
Ilmir Usmanov
2021-01-19 07:26:43 +01:00
parent d1ee45b518
commit b476f1cc3e
4 changed files with 18 additions and 3 deletions
@@ -1,12 +1,12 @@
// WITH_RUNTIME // WITH_RUNTIME
// WITH_COROUTINES // WITH_COROUTINES
// TARGET_BACKEND: JVM // IGNORE_BACKEND: JVM, JS_IR
// IGNORE_BACKEND: JVM // IGNORE_LIGHT_ANALYSIS
// LANGUAGE: +SuspendFunctionsInFunInterfaces, +JvmIrEnabledByDefault
import helpers.* import helpers.*
import kotlin.coroutines.* import kotlin.coroutines.*
@Suppress("FUN_INTERFACE_WITH_SUSPEND_FUNCTION")
fun interface Action { fun interface Action {
suspend fun run() suspend fun run()
} }
@@ -6114,6 +6114,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt"); runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt");
} }
@TestMetadata("funInterface.kt")
public void testFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt");
}
@TestMetadata("inlineSuspendFinally.kt") @TestMetadata("inlineSuspendFinally.kt")
public void testInlineSuspendFinally() throws Exception { public void testInlineSuspendFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt"); runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt");
@@ -6114,6 +6114,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt"); runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt");
} }
@TestMetadata("funInterface.kt")
public void testFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt");
}
@TestMetadata("inlineSuspendFinally.kt") @TestMetadata("inlineSuspendFinally.kt")
public void testInlineSuspendFinally() throws Exception { public void testInlineSuspendFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt"); runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt");
@@ -6114,6 +6114,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt"); runTest("compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt");
} }
@TestMetadata("funInterface.kt")
public void testFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt");
}
@TestMetadata("inlineSuspendFinally.kt") @TestMetadata("inlineSuspendFinally.kt")
public void testInlineSuspendFinally() throws Exception { public void testInlineSuspendFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt"); runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt");