diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java index 2fe6afff1dd..6308f22e159 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java @@ -483,6 +483,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia runTest("compiler/testData/diagnostics/tests/implicitNothing.kt"); } + @Test + @TestMetadata("inapplicableTargetPropertyImmutableInPrimaryConstructor.kt") + public void testInapplicableTargetPropertyImmutableInPrimaryConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt"); + } + @Test @TestMetadata("IncDec.kt") public void testIncDec() throws Exception { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java index 928ff841944..06cae386e96 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java @@ -483,6 +483,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated runTest("compiler/testData/diagnostics/tests/implicitNothing.kt"); } + @Test + @TestMetadata("inapplicableTargetPropertyImmutableInPrimaryConstructor.kt") + public void testInapplicableTargetPropertyImmutableInPrimaryConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt"); + } + @Test @TestMetadata("IncDec.kt") public void testIncDec() throws Exception { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java index 53c96a7f2d5..aa34f698412 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java @@ -483,6 +483,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir runTest("compiler/testData/diagnostics/tests/implicitNothing.kt"); } + @Test + @TestMetadata("inapplicableTargetPropertyImmutableInPrimaryConstructor.kt") + public void testInapplicableTargetPropertyImmutableInPrimaryConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt"); + } + @Test @TestMetadata("IncDec.kt") public void testIncDec() throws Exception { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java index c64e7029fbb..62293040ae8 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java @@ -483,6 +483,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia runTest("compiler/testData/diagnostics/tests/implicitNothing.kt"); } + @Test + @TestMetadata("inapplicableTargetPropertyImmutableInPrimaryConstructor.kt") + public void testInapplicableTargetPropertyImmutableInPrimaryConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt"); + } + @Test @TestMetadata("IncDec.kt") public void testIncDec() throws Exception { diff --git a/compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.fir.kt b/compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.fir.kt new file mode 100644 index 00000000000..b0f224e1142 --- /dev/null +++ b/compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.fir.kt @@ -0,0 +1,19 @@ +// ISSUE: KT-64609 + +package second + +annotation class Anno + +class SimpleVarClass( + @Anno + @get:Anno + @set:Anno + @setparam:Anno + val constructorVariableWithAnnotations: Long, +) { + @Anno + @get:Anno + @set:Anno + @setparam:Anno + val memberVariableWithAnnotations: Long = 0L +} diff --git a/compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt b/compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt new file mode 100644 index 00000000000..a158262a965 --- /dev/null +++ b/compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt @@ -0,0 +1,19 @@ +// ISSUE: KT-64609 + +package second + +annotation class Anno + +class SimpleVarClass( + @Anno + @get:Anno + @set:Anno + @setparam:Anno + val constructorVariableWithAnnotations: Long, +) { + @Anno + @get:Anno + @set:Anno + @setparam:Anno + val memberVariableWithAnnotations: Long = 0L +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java index feda07cc742..a3fe29397c6 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java @@ -483,6 +483,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest { runTest("compiler/testData/diagnostics/tests/implicitNothing.kt"); } + @Test + @TestMetadata("inapplicableTargetPropertyImmutableInPrimaryConstructor.kt") + public void testInapplicableTargetPropertyImmutableInPrimaryConstructor() throws Exception { + runTest("compiler/testData/diagnostics/tests/inapplicableTargetPropertyImmutableInPrimaryConstructor.kt"); + } + @Test @TestMetadata("IncDec.kt") public void testIncDec() throws Exception {