[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
+7
View File
@@ -0,0 +1,7 @@
$TESTDATA_DIR$/kt58139/common.kt
$TESTDATA_DIR$/kt58139/platform.kt
-Xcommon-sources=$TESTDATA_DIR$/kt58139/common.kt
-language-version
2.0
-d
$TEMP_DIR$
+2
View File
@@ -0,0 +1,2 @@
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
OK
+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() {}