From f7a2da8f82e61d8d52d90df76f00e83fe9309cbd Mon Sep 17 00:00:00 2001 From: Ilmir Usmanov Date: Tue, 12 Sep 2023 20:11:55 +0200 Subject: [PATCH] Minor. Add regression test for KT-41997 #KT-41997 Fixed --- ...LightTreeBlackBoxCodegenTestGenerated.java | 12 ++++++++++ ...hIrFakeOverrideGeneratorTestGenerated.java | 12 ++++++++++ .../FirPsiBlackBoxCodegenTestGenerated.java | 12 ++++++++++ .../k2/expectValInInlineClass.kt | 21 ++++++++++++++++++ .../k2/expectValInInlineClassJVM.kt | 22 +++++++++++++++++++ .../codegen/BlackBoxCodegenTestGenerated.java | 12 ++++++++++ .../IrBlackBoxCodegenTestGenerated.java | 12 ++++++++++ ...kBoxCodegenWithIrInlinerTestGenerated.java | 12 ++++++++++ .../LightAnalysisModeTestGenerated.java | 10 +++++++++ .../fir/FirJsCodegenBoxTestGenerated.java | 6 +++++ .../fir/FirJsES6CodegenBoxTestGenerated.java | 6 +++++ .../test/ir/IrJsCodegenBoxTestGenerated.java | 6 +++++ .../ir/IrJsES6CodegenBoxTestGenerated.java | 6 +++++ .../FirNativeCodegenBoxTestGenerated.java | 6 +++++ .../FirNativeCodegenBoxTestNoPLGenerated.java | 6 +++++ .../NativeCodegenBoxTestGenerated.java | 6 +++++ .../NativeCodegenBoxTestNoPLGenerated.java | 6 +++++ .../test/FirWasmCodegenBoxTestGenerated.java | 6 +++++ .../test/K1WasmCodegenBoxTestGenerated.java | 6 +++++ 19 files changed, 185 insertions(+) create mode 100644 compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt create mode 100644 compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index 7615e82ab7f..3aa0f19d4d7 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -34044,6 +34044,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + + @Test + @TestMetadata("expectValInInlineClassJVM.kt") + public void testExpectValInInlineClassJVM() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt"); + } + @Test @TestMetadata("javaMethodWithTypeParameter.kt") public void testJavaMethodWithTypeParameter() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java index 90e12b2c63b..c6a03c456f9 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java @@ -34044,6 +34044,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + + @Test + @TestMetadata("expectValInInlineClassJVM.kt") + public void testExpectValInInlineClassJVM() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt"); + } + @Test @TestMetadata("javaMethodWithTypeParameter.kt") public void testJavaMethodWithTypeParameter() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index d351112a4c2..a1f222d2d8c 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -34044,6 +34044,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + + @Test + @TestMetadata("expectValInInlineClassJVM.kt") + public void testExpectValInInlineClassJVM() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt"); + } + @Test @TestMetadata("javaMethodWithTypeParameter.kt") public void testJavaMethodWithTypeParameter() throws Exception { diff --git a/compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt b/compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt new file mode 100644 index 00000000000..173ab442ff6 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt @@ -0,0 +1,21 @@ +// LANGUAGE: +MultiPlatformProjects +// IGNORE_BACKEND_K1: ANY +// IGNORE_LIGHT_TREE +// IGNORE_LIGHT_ANALYSIS +// IGNORE_BACKEND_K2: JVM_IR +// MODULE: common +// FILE: common.kt + +expect value class Wrapper(val obj: Any) { + val prop: String // [PROPERTY_WITH_BACKING_FIELD_INSIDE_VALUE_CLASS] Value class cannot have properties with backing fields +} + +// MODULE: main()()(common) +// FILE: test.kt + +actual value class Wrapper(val obj: Any) { + val prop: String + get() = "OK" +} + +fun box(): String = Wrapper("").prop \ No newline at end of file diff --git a/compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt b/compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt new file mode 100644 index 00000000000..8783d592cf1 --- /dev/null +++ b/compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt @@ -0,0 +1,22 @@ +// LANGUAGE: +MultiPlatformProjects +// IGNORE_BACKEND_K1: ANY +// IGNORE_LIGHT_TREE +// TARGET_BACKEND: JVM +// WITH_STDLIB +// MODULE: common +// FILE: common.kt + +expect value class Wrapper(val obj: Any) { + val prop: String // [PROPERTY_WITH_BACKING_FIELD_INSIDE_VALUE_CLASS] Value class cannot have properties with backing fields +} + +// MODULE: main()()(common) +// FILE: test.kt + +@JvmInline +actual value class Wrapper(val obj: Any) { + val prop: String + get() = "OK" +} + +fun box(): String = Wrapper("").prop \ No newline at end of file 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 83c84b711f7..aee4f0d2740 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 @@ -32352,6 +32352,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + + @Test + @TestMetadata("expectValInInlineClassJVM.kt") + public void testExpectValInInlineClassJVM() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") 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 2b3d356737d..6375389a32d 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 @@ -34044,6 +34044,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + + @Test + @TestMetadata("expectValInInlineClassJVM.kt") + public void testExpectValInInlineClassJVM() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt"); + } + @Test @TestMetadata("javaMethodWithTypeParameter.kt") public void testJavaMethodWithTypeParameter() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index 8fee15106d6..150d269d9fc 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -34044,6 +34044,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + + @Test + @TestMetadata("expectValInInlineClassJVM.kt") + public void testExpectValInInlineClassJVM() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt"); + } + @Test @TestMetadata("javaMethodWithTypeParameter.kt") public void testJavaMethodWithTypeParameter() 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 ba2a7b22ac3..2260835c916 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -29011,6 +29011,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + + @TestMetadata("expectValInInlineClassJVM.kt") + public void testExpectValInInlineClassJVM() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt"); + } + @TestMetadata("javaMethodWithTypeParameter.kt") public void testJavaMethodWithTypeParameter() throws Exception { runTest("compiler/testData/codegen/box/multiplatform/k2/javaMethodWithTypeParameter.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java index 808fee72860..b65bfb90a7c 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java @@ -23808,6 +23808,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java index ec287be4a71..838a2aed93a 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java @@ -23808,6 +23808,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index 6b5157409cd..1e073ce6f5d 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -23808,6 +23808,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java index 107e6ece5fa..a209dd37107 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java @@ -23808,6 +23808,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java index 5095e906893..319c461f2e3 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestGenerated.java @@ -26777,6 +26777,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java index a7d314c6377..b0dc7339e03 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/FirNativeCodegenBoxTestNoPLGenerated.java @@ -27393,6 +27393,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index cdd58955913..8ff41caa07c 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -26470,6 +26470,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java index 76e2da775cf..ccbae772ff5 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestNoPLGenerated.java @@ -26778,6 +26778,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java index 8e9f89b55d2..18f4551cb64 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java @@ -23556,6 +23556,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT") diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java index 1205a0f261c..2ab7ffdc620 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java @@ -23556,6 +23556,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt"); } + @Test + @TestMetadata("expectValInInlineClass.kt") + public void testExpectValInInlineClass() throws Exception { + runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations") @TestDataPath("$PROJECT_ROOT")