[FIR] Support several annotation argument diagnostics
This commit is contained in:
committed by
Mikhail Glukhikh
parent
0c13d3197c
commit
cfc1ebb4be
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
annotation class Ann(val a: Array<String>)
|
||||
|
||||
val foo = ""
|
||||
var bar = 1
|
||||
const val cnst = 2
|
||||
|
||||
@Ann(
|
||||
<!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>arrayOf(
|
||||
<!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>foo<!>,
|
||||
<!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>foo + cnst.toString()<!>
|
||||
)<!>
|
||||
)
|
||||
fun test() {}
|
||||
Reference in New Issue
Block a user