[FIR] Don't crash on complex expression as annotation argument if metadata compilation is used
^KT-58139 Fixed
This commit is contained in:
committed by
Space Team
parent
abdb173f6c
commit
2251214d24
+7
@@ -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
@@ -0,0 +1,2 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
OK
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
const val DOUBLE_BATCH_SIZE = 2 * BATCH_SIZE
|
||||
|
||||
annotation class A(val value: Int)
|
||||
|
||||
@A(BATCH_SIZE)
|
||||
fun bar() {}
|
||||
Reference in New Issue
Block a user