Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/nestedAnnotationConstExprArguments.kt
T
Nikolay Lunyak 45619ab390 [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>
2022-09-07 12:34:26 +00:00

15 lines
353 B
Kotlin
Vendored

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