diff --git a/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.args b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.args new file mode 100644 index 00000000000..8dd2db50eff --- /dev/null +++ b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.args @@ -0,0 +1,8 @@ +$TESTDATA_DIR$/k2SimpleMultiplatformGenericClass/common.kt +$TESTDATA_DIR$/k2SimpleMultiplatformGenericClass/jvm.kt +-d +$TEMP_DIR$ +-Xmulti-platform +-Xcommon-sources=$TESTDATA_DIR$/k2SimpleMultiplatformGenericClass/common.kt +-language-version +2.0 \ No newline at end of file diff --git a/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.out b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.out new file mode 100644 index 00000000000..86ca0241885 --- /dev/null +++ b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.out @@ -0,0 +1,2 @@ +warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features +OK diff --git a/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/common.kt b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/common.kt new file mode 100644 index 00000000000..7c207776fd7 --- /dev/null +++ b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/common.kt @@ -0,0 +1,3 @@ +expect class AtomicRef { + val value: T +} \ No newline at end of file diff --git a/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/jvm.kt b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/jvm.kt new file mode 100644 index 00000000000..99191e0c603 --- /dev/null +++ b/compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass/jvm.kt @@ -0,0 +1,3 @@ +actual class AtomicRef constructor(value: T) { + actual val value: T = value +} \ No newline at end of file diff --git a/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java index 1f3d0713d07..eba34e8042c 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java @@ -865,6 +865,11 @@ public class CliTestGenerated extends AbstractCliTest { runTest("compiler/testData/cli/jvm/jvmRecordWrongTarget.args"); } + @TestMetadata("k2SimpleMultiplatformGenericClass.args") + public void testK2SimpleMultiplatformGenericClass() throws Exception { + runTest("compiler/testData/cli/jvm/k2SimpleMultiplatformGenericClass.args"); + } + @TestMetadata("kotlinHomeWithoutStdlib.args") public void testKotlinHomeWithoutStdlib() throws Exception { runTest("compiler/testData/cli/jvm/kotlinHomeWithoutStdlib.args");