[FIR] Fix Disappeared ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT

^KT-59942 Fixed
This commit is contained in:
Vladimir Sukharev
2023-10-04 23:42:45 +02:00
committed by Space Team
parent c860de6600
commit 7b3e661776
5 changed files with 12 additions and 57 deletions
@@ -1,23 +0,0 @@
const val ONE = 1
annotation class Foo(
val a: IntArray = [ONE],
val b: IntArray = [ONE, 2, 3]
)
val TWO = 2
fun getOne() = ONE
fun getTwo() = TWO
annotation class Bar(
val a: IntArray = [TWO],
val b: IntArray = [1, TWO],
val c: IntArray = [getOne(), getTwo()]
)
annotation class Baz(
val a: IntArray = [<!NULL_FOR_NONNULL_TYPE!>null<!>],
val b: IntArray = [1, <!NULL_FOR_NONNULL_TYPE!>null<!>, 2],
val c: IntArray = [<!NO_THIS!>this<!>]
)
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
const val ONE = 1
annotation class Foo(