[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:
committed by
Space Team
parent
1efa9abf57
commit
f434228244
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user