[FIR] Don't miss non-const annotation args

This code with `b()` crashes the JVM
backend.

^KT-59822 Fixed
^KT-59874
This commit is contained in:
Nikolay Lunyak
2023-10-30 11:42:47 +02:00
committed by Space Team
parent 5a1a23afac
commit c656a83a02
13 changed files with 52 additions and 40 deletions
@@ -23,8 +23,8 @@ class A
Companion.CONST,
Nested.CONST,
Interface.CONST,
<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>a<!>,
b()
<!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>a<!>,
<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>b()<!>
)
constructor() {
@@ -36,8 +36,8 @@ constructor() {
Companion.CONST,
Nested.CONST,
Interface.CONST,
<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>a<!>,
b()
<!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>a<!>,
<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>b()<!>
)
constructor(dummy: Int) : this()