[FIR] Don't crash on complex expression as annotation argument if metadata compilation is used

^KT-58139 Fixed
This commit is contained in:
Ivan Kochurkin
2023-05-29 21:59:53 +02:00
committed by Space Team
parent abdb173f6c
commit 2251214d24
7 changed files with 49 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
// ISSUE: KT-58139
annotation class AnnKlass(val arg: String)
@AnnKlass("lhs" + "rhs")
fun foo() {}
const val BATCH_SIZE: Int = 16 * 1024
+6
View File
@@ -0,0 +1,6 @@
const val DOUBLE_BATCH_SIZE = 2 * BATCH_SIZE
annotation class A(val value: Int)
@A(BATCH_SIZE)
fun bar() {}