[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:
+14
@@ -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
|
||||
Reference in New Issue
Block a user