[FIR] Reproduce KT-64609

^KT-64609
This commit is contained in:
Nikolay Lunyak
2024-01-03 14:44:57 +02:00
committed by Space Team
parent af5f76048b
commit 1f46aed3e0
7 changed files with 68 additions and 0 deletions
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@set:Anno<!>
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@setparam:Anno<!>
val memberVariableWithAnnotations: Long = 0L
}
@@ -0,0 +1,19 @@
// ISSUE: KT-64609
package second
annotation class Anno
class SimpleVarClass(
@Anno
@get:Anno
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@set:Anno<!>
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@setparam:Anno<!>
val constructorVariableWithAnnotations: Long,
) {
@Anno
@get:Anno
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@set:Anno<!>
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@setparam:Anno<!>
val memberVariableWithAnnotations: Long = 0L
}
@@ -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 {