diff --git a/compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionFun.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt similarity index 100% rename from compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionFun.kt rename to compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt diff --git a/compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionVal.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt similarity index 100% rename from compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionVal.kt rename to compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java index 1ec73e99445..2d5949b38bb 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java @@ -11899,6 +11899,29 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt"); } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ContextsAndAccessors extends AbstractBlackBoxCodegenTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); + } + + public void testAllFilesPresentInContextsAndAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("toPrivateCompanionFun.kt") + public void testToPrivateCompanionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt"); + } + + @TestMetadata("toPrivateCompanionVal.kt") + public void testToPrivateCompanionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -12107,29 +12130,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt"); } } - - @TestMetadata("compiler/testData/codegen/box/inlineClasses/membersAccess") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MembersAccess extends AbstractBlackBoxCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - - public void testAllFilesPresentInMembersAccess() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/membersAccess"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); - } - - @TestMetadata("toPrivateCompanionFun.kt") - public void testToPrivateCompanionFun() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionFun.kt"); - } - - @TestMetadata("toPrivateCompanionVal.kt") - public void testToPrivateCompanionVal() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionVal.kt"); - } - } } @TestMetadata("compiler/testData/codegen/box/innerNested") diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 6bb792ee994..aa5884aa6e8 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -11899,6 +11899,29 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt"); } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ContextsAndAccessors extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); + } + + public void testAllFilesPresentInContextsAndAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); + } + + @TestMetadata("toPrivateCompanionFun.kt") + public void testToPrivateCompanionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt"); + } + + @TestMetadata("toPrivateCompanionVal.kt") + public void testToPrivateCompanionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -12107,29 +12130,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt"); } } - - @TestMetadata("compiler/testData/codegen/box/inlineClasses/membersAccess") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MembersAccess extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - - public void testAllFilesPresentInMembersAccess() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/membersAccess"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); - } - - @TestMetadata("toPrivateCompanionFun.kt") - public void testToPrivateCompanionFun() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionFun.kt"); - } - - @TestMetadata("toPrivateCompanionVal.kt") - public void testToPrivateCompanionVal() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionVal.kt"); - } - } } @TestMetadata("compiler/testData/codegen/box/innerNested") diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java index e937b3c2958..afa55cd9617 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java @@ -11904,6 +11904,29 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt"); } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ContextsAndAccessors extends AbstractIrBlackBoxCodegenTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInContextsAndAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true); + } + + @TestMetadata("toPrivateCompanionFun.kt") + public void testToPrivateCompanionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt"); + } + + @TestMetadata("toPrivateCompanionVal.kt") + public void testToPrivateCompanionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -12112,29 +12135,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt"); } } - - @TestMetadata("compiler/testData/codegen/box/inlineClasses/membersAccess") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MembersAccess extends AbstractIrBlackBoxCodegenTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInMembersAccess() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/membersAccess"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true); - } - - @TestMetadata("toPrivateCompanionFun.kt") - public void testToPrivateCompanionFun() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionFun.kt"); - } - - @TestMetadata("toPrivateCompanionVal.kt") - public void testToPrivateCompanionVal() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionVal.kt"); - } - } } @TestMetadata("compiler/testData/codegen/box/innerNested") diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrJsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrJsCodegenBoxTestGenerated.java index 1f4b069ca38..f7dd6501738 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrJsCodegenBoxTestGenerated.java @@ -10439,6 +10439,29 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt"); } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ContextsAndAccessors extends AbstractIrJsCodegenBoxTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath); + } + + public void testAllFilesPresentInContextsAndAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true); + } + + @TestMetadata("toPrivateCompanionFun.kt") + public void testToPrivateCompanionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt"); + } + + @TestMetadata("toPrivateCompanionVal.kt") + public void testToPrivateCompanionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -10647,29 +10670,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt"); } } - - @TestMetadata("compiler/testData/codegen/box/inlineClasses/membersAccess") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MembersAccess extends AbstractIrJsCodegenBoxTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath); - } - - public void testAllFilesPresentInMembersAccess() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/membersAccess"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true); - } - - @TestMetadata("toPrivateCompanionFun.kt") - public void testToPrivateCompanionFun() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionFun.kt"); - } - - @TestMetadata("toPrivateCompanionVal.kt") - public void testToPrivateCompanionVal() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionVal.kt"); - } - } } @TestMetadata("compiler/testData/codegen/box/innerNested") diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index 5a2982faa50..a3b16cd6cb2 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -11484,6 +11484,29 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/useThisInsideInlineClass.kt"); } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ContextsAndAccessors extends AbstractJsCodegenBoxTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath); + } + + public void testAllFilesPresentInContextsAndAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); + } + + @TestMetadata("toPrivateCompanionFun.kt") + public void testToPrivateCompanionFun() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionFun.kt"); + } + + @TestMetadata("toPrivateCompanionVal.kt") + public void testToPrivateCompanionVal() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/toPrivateCompanionVal.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses/functionNameMangling") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -11692,29 +11715,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/interfaceMethodCalls/overriddenDefaultInterfaceMethodCall.kt"); } } - - @TestMetadata("compiler/testData/codegen/box/inlineClasses/membersAccess") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MembersAccess extends AbstractJsCodegenBoxTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath); - } - - public void testAllFilesPresentInMembersAccess() throws Exception { - KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/membersAccess"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); - } - - @TestMetadata("toPrivateCompanionFun.kt") - public void testToPrivateCompanionFun() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionFun.kt"); - } - - @TestMetadata("toPrivateCompanionVal.kt") - public void testToPrivateCompanionVal() throws Exception { - runTest("compiler/testData/codegen/box/inlineClasses/membersAccess/toPrivateCompanionVal.kt"); - } - } } @TestMetadata("compiler/testData/codegen/box/innerNested")