[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
@@ -0,0 +1,14 @@
annotation class InnerAnnotation(val text: String)
annotation class OuterAnnotation(val inner: InnerAnnotation)
@OuterAnnotation(InnerAnnotation(text = "x" + "x"))
class Payload
@InnerAnnotation(text = "x" + "x")
class Payload2
@OuterAnnotation(InnerAnnotation(text = "x"))
class Payload3
@OuterAnnotation(InnerAnnotation("x" + "x"))
class Payload4