From b476f1cc3e7bdfa4ef9d8de482ffda05f1bbeb7d Mon Sep 17 00:00:00 2001 From: Ilmir Usmanov Date: Tue, 19 Jan 2021 07:26:43 +0100 Subject: [PATCH] Minor. Change test to use the feature instead of suppressing error --- .../box/coroutines/featureIntersection/funInterface.kt | 6 +++--- .../test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java | 5 +++++ .../js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java | 5 +++++ .../kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java | 5 +++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt index 678f8efa7bb..7941bd85f23 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt @@ -1,12 +1,12 @@ // 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() } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java index 18325dc6390..0269b7cfd7f 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java @@ -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"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java index 572014b9ef3..87c33429a9a 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/semantics/IrJsCodegenBoxTestGenerated.java @@ -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"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index dc44e0a72dc..dede16d4b2d 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -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"); -- GitLab