[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:
committed by
Space Team
parent
5a1a23afac
commit
c656a83a02
+4
-4
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user