[FIR] Fix false positive POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION

The original Java checker has an early return in
case of `resultingDescriptor !is JavaClassConstructorDescriptor`.
It fires if the descriptor is
`TypeAliasConstructorDescriptor`, thus further
diagnostics are not reported.
This commit is contained in:
Nikolay Lunyak
2023-09-05 14:19:33 +03:00
committed by Space Team
parent 1efa9abf57
commit f434228244
7 changed files with 73 additions and 2 deletions
@@ -1413,6 +1413,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/UnitValue.kt");
}
@Test
@TestMetadata("unnamedArgsInJavaAnnotations.kt")
public void testUnnamedArgsInJavaAnnotations() throws Exception {
runTest("compiler/testData/diagnostics/tests/unnamedArgsInJavaAnnotations.kt");
}
@Test
@TestMetadata("unproperDefaultInitializationInTailrec.kt")
public void testUnproperDefaultInitializationInTailrec() throws Exception {
@@ -1413,6 +1413,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/UnitValue.kt");
}
@Test
@TestMetadata("unnamedArgsInJavaAnnotations.kt")
public void testUnnamedArgsInJavaAnnotations() throws Exception {
runTest("compiler/testData/diagnostics/tests/unnamedArgsInJavaAnnotations.kt");
}
@Test
@TestMetadata("unproperDefaultInitializationInTailrec.kt")
public void testUnproperDefaultInitializationInTailrec() throws Exception {