Minor. Change test to use the feature instead of suppressing error
This commit is contained in:
+3
-3
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -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");
|
||||||
|
|||||||
Generated
+5
@@ -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");
|
||||||
|
|||||||
Generated
+5
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user