Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedProperty.fir.kt
T
Nikolay Lunyak c656a83a02 [FIR] Don't miss non-const annotation args
This code with `b()` crashes the JVM
backend.

^KT-59822 Fixed
^KT-59874
2023-11-14 15:19:33 +00:00

6 lines
164 B
Kotlin
Vendored

// Properties can be recursively annotated
annotation class ann(val x: Int)
class My {
@ann(<!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>x<!>) val x: Int = 1
}