Files
kotlin-fork/compiler/testData/diagnostics/tests/collectionLiterals/defaultValuesInAnnotation.fir.kt
T
Dmitriy Novozhilov c1575edca4 [FE 1.0] Drop ArrayLiteralsInAnnotations feature
This feature was introduced in 1.2, so now it's stable part of language
  and we can drop support of disabling it
2022-01-14 14:26:50 +03:00

24 lines
556 B
Kotlin
Vendored

annotation class Foo(
val a: Array<String> = ["/"],
val b: Array<String> = [],
val c: Array<String> = ["1", "2"]
)
annotation class Bar(
val a: Array<String> = [' '],
val b: Array<String> = ["", <!EMPTY_CHARACTER_LITERAL!>''<!>],
val c: Array<String> = [1]
)
annotation class Base(
val a0: IntArray = [],
val a1: IntArray = [1],
val b1: FloatArray = [1f],
val b0: FloatArray = []
)
annotation class Err(
val a: IntArray = [1L],
val b: Array<String> = [1]
)