From 786999bcfef8e46f6f4a4e529d010c336ac2477e Mon Sep 17 00:00:00 2001 From: Ilmir Usmanov Date: Wed, 31 Mar 2021 19:52:30 +0200 Subject: [PATCH] Minor. Add regression tests #KT-44143 --- .../FirBlackBoxCodegenTestGenerated.java | 18 ++++ .../boxTypeParameterOfSuperTypeResult.kt | 40 +++++++++ .../boxTypeParameterOfSuperTypeResult.kt | 43 ++++++++++ .../boxTypeParameterOfSuperTypeResult.kt | 43 ++++++++++ .../codegen/BlackBoxCodegenTestGenerated.java | 18 ++++ .../IrBlackBoxCodegenTestGenerated.java | 18 ++++ .../LightAnalysisModeTestGenerated.java | 25 ++++-- .../VisualizerBlackBoxTestGenerated.java | 82 +++++++++++++++++++ .../IrJsCodegenBoxES6TestGenerated.java | 15 ++++ .../IrJsCodegenBoxTestGenerated.java | 15 ++++ .../semantics/JsCodegenBoxTestGenerated.java | 15 ++++ 11 files changed, 327 insertions(+), 5 deletions(-) create mode 100644 compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt create mode 100644 compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt create mode 100644 compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java index 5d299c29eea..51ce0e95823 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java @@ -10002,6 +10002,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10276,6 +10282,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10550,6 +10562,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { diff --git a/compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt b/compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt new file mode 100644 index 00000000000..ea539b92cc7 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt @@ -0,0 +1,40 @@ +// WITH_RUNTIME +// IGNORE_BACKEND: JVM +// IGNORE_BACKEND: JS_IR + +import kotlin.coroutines.* + +interface GenericSuspendInterface { + suspend fun execute(): T +} + +interface SuspendInterface : GenericSuspendInterface> + +class SuspendImpl : SuspendInterface { + override suspend fun execute(): Result = Result.success("OK") +} + +fun builder(c: suspend () -> Unit) { + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) +} + +fun box(): String { + var res = "FAIL 1" + builder { + val impl = SuspendImpl() + val implResult = impl.execute() + res = implResult.getOrThrow() + } + + if (res != "OK") return res + + res = "FAIL 2" + builder { + val iface: SuspendInterface = SuspendImpl() + val result = iface.execute() + res = result.getOrThrow() + } + return res +} diff --git a/compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt b/compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt new file mode 100644 index 00000000000..e36cc458f5e --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt @@ -0,0 +1,43 @@ +// WITH_RUNTIME +// IGNORE_BACKEND: JS_IR + +import kotlin.coroutines.* + +interface GenericSuspendInterface { + suspend fun execute(): T +} + +interface SuspendInterface : GenericSuspendInterface> + +var c: Continuation>? = null + +class SuspendImpl : SuspendInterface { + override suspend fun execute(): Result = suspendCoroutine { c = it } +} + +fun builder(c: suspend () -> Unit) { + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) +} + +fun box(): String { + var res = "FAIL 1" + builder { + val impl = SuspendImpl() + val implResult = impl.execute() + res = implResult.getOrThrow() + } + c?.resume(Result.success("OK")) + + if (res != "OK") return res + + res = "FAIL 2" + builder { + val iface: SuspendInterface = SuspendImpl() + val result = iface.execute() + res = result.getOrThrow() + } + c?.resume(Result.success("OK")) + return res +} diff --git a/compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt b/compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt new file mode 100644 index 00000000000..30f05100412 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt @@ -0,0 +1,43 @@ +// WITH_RUNTIME +// IGNORE_BACKEND: JS_IR + +import kotlin.coroutines.* + +interface GenericSuspendInterface { + suspend fun execute(): T +} + +interface SuspendInterface : GenericSuspendInterface> + +var c: Continuation>? = null +var res = "FAIL 1" + +class SuspendImpl : SuspendInterface { + override suspend fun execute(): Result = suspendCoroutine { c = it } +} + +fun builder(c: suspend () -> Unit) { + c.startCoroutine(Continuation(EmptyCoroutineContext) { + res = it.exceptionOrNull()!!.message!! + }) +} + +fun box(): String { + builder { + val impl = SuspendImpl() + val implResult = impl.execute() + implResult.getOrThrow() + } + c?.resumeWithException(IllegalStateException("OK")) + + if (res != "OK") return res + + res = "FAIL 2" + builder { + val iface: SuspendInterface = SuspendImpl() + val result = iface.execute() + result.getOrThrow() + } + c?.resumeWithException(IllegalStateException("OK")) + return res +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index b6b1e1c1fec..84c343133eb 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -10002,6 +10002,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10276,6 +10282,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10550,6 +10562,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index bffe27a6ab4..79e8c0b5682 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -10002,6 +10002,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10276,6 +10282,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10550,6 +10562,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 077416bf558..5a1d5e4bba3 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -7892,6 +7892,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void ignoreBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -8120,6 +8125,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class Resume extends AbstractLightAnalysisModeTest { + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void ignoreBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -8353,6 +8363,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class ResumeWithException extends AbstractLightAnalysisModeTest { + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void ignoreBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } @@ -19968,11 +19983,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class ProtectedInSuperClass extends AbstractLightAnalysisModeTest { - @TestMetadata("defaultArguments.kt") - public void ignoreDefaultArguments() throws Exception { - runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/defaultArguments.kt"); - } - @TestMetadata("simpleFunction.kt") public void ignoreSimpleFunction() throws Exception { runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/simpleFunction.kt"); @@ -19990,6 +20000,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes public void testAllFilesPresentInProtectedInSuperClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + + @TestMetadata("defaultArguments.kt") + public void testDefaultArguments() throws Exception { + runTest("compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/defaultArguments.kt"); + } } } diff --git a/compiler/visualizer/tests-gen/org/jetbrains/kotlin/visualizer/VisualizerBlackBoxTestGenerated.java b/compiler/visualizer/tests-gen/org/jetbrains/kotlin/visualizer/VisualizerBlackBoxTestGenerated.java index 8463e55103c..10bad5422c8 100644 --- a/compiler/visualizer/tests-gen/org/jetbrains/kotlin/visualizer/VisualizerBlackBoxTestGenerated.java +++ b/compiler/visualizer/tests-gen/org/jetbrains/kotlin/visualizer/VisualizerBlackBoxTestGenerated.java @@ -10013,6 +10013,12 @@ public class VisualizerBlackBoxTestGenerated extends AbstractVisualizerBlackBoxT runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10287,6 +10293,12 @@ public class VisualizerBlackBoxTestGenerated extends AbstractVisualizerBlackBoxT runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -10561,6 +10573,12 @@ public class VisualizerBlackBoxTestGenerated extends AbstractVisualizerBlackBoxT runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); } + @Test + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + @Test @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { @@ -38120,6 +38138,70 @@ public class VisualizerBlackBoxTestGenerated extends AbstractVisualizerBlackBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/sameFileInSourceAndDependencies") + @TestDataPath("$PROJECT_ROOT") + public class SameFileInSourceAndDependencies { + @Test + public void testAllFilesPresentInSameFileInSourceAndDependencies() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sameFileInSourceAndDependencies"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("classDeclaration.kt") + public void testClassDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/classDeclaration.kt"); + } + + @Test + @TestMetadata("functionDeclaration.kt") + public void testFunctionDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/functionDeclaration.kt"); + } + + @Test + @TestMetadata("jvmFieldMemberPropertyDeclaration.kt") + public void testJvmFieldMemberPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/jvmFieldMemberPropertyDeclaration.kt"); + } + + @Test + @TestMetadata("lateinitMemberPropertyDeclaration.kt") + public void testLateinitMemberPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/lateinitMemberPropertyDeclaration.kt"); + } + + @Test + @TestMetadata("memberFunctionDeclaration.kt") + public void testMemberFunctionDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionDeclaration.kt"); + } + + @Test + @TestMetadata("memberFunctionWithDefaultArgumentsDeclaration.kt") + public void testMemberFunctionWithDefaultArgumentsDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionWithDefaultArgumentsDeclaration.kt"); + } + + @Test + @TestMetadata("memberPropertyDeclaration.kt") + public void testMemberPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberPropertyDeclaration.kt"); + } + + @Test + @TestMetadata("nestedClassDeclaration.kt") + public void testNestedClassDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/nestedClassDeclaration.kt"); + } + + @Test + @TestMetadata("propertyDeclaration.kt") + public void testPropertyDeclaration() throws Exception { + runTest("compiler/testData/codegen/box/sameFileInSourceAndDependencies/propertyDeclaration.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/sealed") @TestDataPath("$PROJECT_ROOT") 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 c4d25f0556c..3521d466931 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 @@ -7069,6 +7069,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine.kt"); @@ -7302,6 +7307,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine.kt"); @@ -7535,6 +7545,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine.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 fb5c8f8902d..d043b0078a2 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 @@ -6490,6 +6490,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine.kt"); @@ -6723,6 +6728,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine.kt"); @@ -6956,6 +6966,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine.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 84f00c049c4..2116954a047 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 @@ -6490,6 +6490,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/direct/boxUnboxInsideCoroutine.kt"); @@ -6723,6 +6728,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resume/boxUnboxInsideCoroutine.kt"); @@ -6956,6 +6966,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperType.kt"); } + @TestMetadata("boxTypeParameterOfSuperTypeResult.kt") + public void testBoxTypeParameterOfSuperTypeResult() throws Exception { + runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxTypeParameterOfSuperTypeResult.kt"); + } + @TestMetadata("boxUnboxInsideCoroutine.kt") public void testBoxUnboxInsideCoroutine() throws Exception { runTest("compiler/testData/codegen/box/coroutines/inlineClasses/resumeWithException/boxUnboxInsideCoroutine.kt");