[FIR] KT-53435: Fix false positive ANNOTATION_ARGUMENT_MUST_BE_CONST

Otherwise, `FirNamedArgumentExpression` are not considered
const expr despite the value.

Merge-request: KT-MR-7052
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
This commit is contained in:
Nikolay Lunyak
2022-09-07 12:34:26 +00:00
committed by Space
parent ff1adf596d
commit 45619ab390
7 changed files with 83 additions and 0 deletions
@@ -404,6 +404,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
runTest("compiler/fir/analysis-tests/testData/resolve/localObject.kt");
}
@Test
@TestMetadata("nestedAnnotationConstExprArguments.kt")
public void testNestedAnnotationConstExprArguments() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/nestedAnnotationConstExprArguments.kt");
}
@Test
@TestMetadata("nestedClass.kt")
public void testNestedClass() throws Exception {