Check that arguments of array function call in annotation are constants
#KT-16956 Fixed
This commit is contained in:
Vendored
+2
-2
@@ -15,11 +15,11 @@ fun getTwo() = TWO
|
||||
annotation class Bar(
|
||||
val a: IntArray = <!ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT!>[TWO]<!>,
|
||||
val b: IntArray = <!ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT!>[1, TWO]<!>,
|
||||
val c: IntArray = [getOne(), getTwo()]
|
||||
val c: IntArray = <!ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT!>[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<!>]
|
||||
val c: IntArray = <!ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT!>[<!NO_THIS!>this<!>]<!>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user