提交 b476f1cc 编写于 作者: I Ilmir Usmanov

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

上级 d1ee45b5
// WITH_RUNTIME
// WITH_COROUTINES
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: JVM, JS_IR
// IGNORE_LIGHT_ANALYSIS
// LANGUAGE: +SuspendFunctionsInFunInterfaces, +JvmIrEnabledByDefault
import helpers.*
import kotlin.coroutines.*
@Suppress("FUN_INTERFACE_WITH_SUSPEND_FUNCTION")
fun interface Action {
suspend fun run()
}
......
......@@ -6114,6 +6114,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
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")
public void testInlineSuspendFinally() throws Exception {
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");
}
@TestMetadata("funInterface.kt")
public void testFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt");
}
@TestMetadata("inlineSuspendFinally.kt")
public void testInlineSuspendFinally() throws Exception {
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");
}
@TestMetadata("funInterface.kt")
public void testFunInterface() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt");
}
@TestMetadata("inlineSuspendFinally.kt")
public void testInlineSuspendFinally() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/inlineSuspendFinally.kt");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册