From bffe9e45e8d03ac79e0bef3fd618284f934230cf Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Mon, 24 Sep 2018 14:24:24 +0300 Subject: [PATCH] Add accessor tests: inline class <-> companion KT-26858 was fixed somewhere in the middle. #KT26858 --- ...accessPrivateInlineClassCompanionMethod.kt | 12 ++++++++ ...ccessPrivateInlineClassCompanionMethod2.kt | 12 ++++++++ ...ssPrivateInlineClassMethodFromCompanion.kt | 12 ++++++++ ...sPrivateInlineClassMethodFromCompanion2.kt | 12 ++++++++ ...PrivateStaticInlineClassCompanionMethod.kt | 14 +++++++++ .../contextsAndAccessors/kt26858.kt | 24 +++++++++++++++ .../codegen/BlackBoxCodegenTestGenerated.java | 30 +++++++++++++++++++ .../LightAnalysisModeTestGenerated.java | 30 +++++++++++++++++++ .../ir/IrBlackBoxCodegenTestGenerated.java | 30 +++++++++++++++++++ .../IrJsCodegenBoxTestGenerated.java | 30 +++++++++++++++++++ .../semantics/JsCodegenBoxTestGenerated.java | 30 +++++++++++++++++++ 11 files changed, 236 insertions(+) create mode 100644 compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt create mode 100644 compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt new file mode 100644 index 00000000000..f52f5a2d5a5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt @@ -0,0 +1,12 @@ +// !LANGUAGE: +InlineClasses +// IGNORE_BACKEND: JVM_IR + +inline class R(private val r: Int) { + fun test() = ok() + + companion object { + private fun ok() = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt new file mode 100644 index 00000000000..83e6bf74b2a --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt @@ -0,0 +1,12 @@ +// !LANGUAGE: +InlineClasses +// IGNORE_BACKEND: JVM_IR + +inline class R(private val r: Long) { + fun test() = ok() + + companion object { + private fun ok() = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt new file mode 100644 index 00000000000..eee37771d05 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt @@ -0,0 +1,12 @@ +// !LANGUAGE: +InlineClasses +// IGNORE_BACKEND: JVM_IR + +inline class R(private val r: Int) { + private fun ok() = "OK" + + companion object { + fun test(r: R) = r.ok() + } +} + +fun box() = R.test(R(0)) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt new file mode 100644 index 00000000000..c59aa95b519 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt @@ -0,0 +1,12 @@ +// !LANGUAGE: +InlineClasses +// IGNORE_BACKEND: JVM_IR + +inline class R(private val r: Long) { + private fun ok() = "OK" + + companion object { + fun test(r: R) = r.ok() + } +} + +fun box() = R.test(R(0)) \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt new file mode 100644 index 00000000000..886d36accce --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt @@ -0,0 +1,14 @@ +// !LANGUAGE: +InlineClasses +// IGNORE_BACKEND: JS, JS_IR, JVM_IR +// WITH_RUNTIME + +inline class R(private val r: Int) { + fun test() = ok() + + companion object { + @JvmStatic + private fun ok() = "OK" + } +} + +fun box() = R(0).test() \ No newline at end of file diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt new file mode 100644 index 00000000000..f2d142d34a5 --- /dev/null +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt @@ -0,0 +1,24 @@ +// !LANGUAGE: +InlineClasses +// IGNORE_BACKEND: JVM_IR + +inline class Direction(private val direction: Int) { + fun dx() = dx[direction] + fun dy() = dy[direction] + + companion object { + private val dx = intArrayOf(0, 1, 0, -1) + private val dy = intArrayOf(-1, 0, 1, 0) + } +} + +fun box(): String { + val dirs = arrayOf(Direction(0), Direction(1), Direction(2), Direction(3)) + val expectedDx = intArrayOf(0, 1, 0, -1) + val expectedDy = intArrayOf(-1, 0, 1, 0) + for (i in 0 .. 3) { + if (dirs[i].dx() != expectedDx[i]) throw AssertionError() + if (dirs[i].dy() != expectedDy[i]) throw AssertionError() + } + + return "OK" +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java index 9322d86ef7d..b7c5d1a7da3 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java @@ -11932,6 +11932,26 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } + @TestMetadata("accessPrivateInlineClassCompanionMethod.kt") + public void testAccessPrivateInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt"); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethod2.kt") + public void testAccessPrivateInlineClassCompanionMethod2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") + public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt"); + } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt"); @@ -11952,6 +11972,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt"); } + @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") + public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt"); + } + public void testAllFilesPresentInContextsAndAccessors() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } @@ -11976,6 +12001,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt"); } + @TestMetadata("kt26858.kt") + public void testKt26858() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); + } + @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index c2ed6173e85..18a49d56ac2 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -11932,6 +11932,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } + @TestMetadata("accessPrivateInlineClassCompanionMethod.kt") + public void testAccessPrivateInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt"); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethod2.kt") + public void testAccessPrivateInlineClassCompanionMethod2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") + public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt"); + } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt"); @@ -11952,6 +11972,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt"); } + @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") + public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt"); + } + public void testAllFilesPresentInContextsAndAccessors() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } @@ -11976,6 +12001,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt"); } + @TestMetadata("kt26858.kt") + public void testKt26858() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); + } + @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java index b41dd0aba07..f430d27d23d 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java @@ -11937,6 +11937,26 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); } + @TestMetadata("accessPrivateInlineClassCompanionMethod.kt") + public void testAccessPrivateInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt"); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethod2.kt") + public void testAccessPrivateInlineClassCompanionMethod2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") + public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt"); + } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt"); @@ -11957,6 +11977,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt"); } + @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") + public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt"); + } + public void testAllFilesPresentInContextsAndAccessors() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true); } @@ -11981,6 +12006,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt"); } + @TestMetadata("kt26858.kt") + public void testKt26858() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); + } + @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt"); 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 d3f351986df..0f039fa60d6 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 @@ -10472,6 +10472,26 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath); } + @TestMetadata("accessPrivateInlineClassCompanionMethod.kt") + public void testAccessPrivateInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt"); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethod2.kt") + public void testAccessPrivateInlineClassCompanionMethod2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") + public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt"); + } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt"); @@ -10492,6 +10512,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt"); } + @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") + public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt"); + } + public void testAllFilesPresentInContextsAndAccessors() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true); } @@ -10516,6 +10541,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt"); } + @TestMetadata("kt26858.kt") + public void testKt26858() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); + } + @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt"); 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 a28a369685a..0a4f67b475e 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 @@ -11517,6 +11517,26 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath); } + @TestMetadata("accessPrivateInlineClassCompanionMethod.kt") + public void testAccessPrivateInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod.kt"); + } + + @TestMetadata("accessPrivateInlineClassCompanionMethod2.kt") + public void testAccessPrivateInlineClassCompanionMethod2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassCompanionMethod2.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion.kt") + public void testAccessPrivateInlineClassMethodFromCompanion() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion.kt"); + } + + @TestMetadata("accessPrivateInlineClassMethodFromCompanion2.kt") + public void testAccessPrivateInlineClassMethodFromCompanion2() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt"); + } + @TestMetadata("accessPrivateInlineClassMethodFromInlineLambda.kt") public void testAccessPrivateInlineClassMethodFromInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromInlineLambda.kt"); @@ -11537,6 +11557,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromLambda2.kt"); } + @TestMetadata("accessPrivateStaticInlineClassCompanionMethod.kt") + public void testAccessPrivateStaticInlineClassCompanionMethod() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateStaticInlineClassCompanionMethod.kt"); + } + public void testAllFilesPresentInContextsAndAccessors() throws Exception { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); } @@ -11561,6 +11586,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/inlineLambdaInInlineClassFun.kt"); } + @TestMetadata("kt26858.kt") + public void testKt26858() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); + } + @TestMetadata("lambdaInInlineClassFun.kt") public void testLambdaInInlineClassFun() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/lambdaInInlineClassFun.kt");