Files
kotlin/compiler/testData/loadJava/compiledKotlin/annotations/PrimitiveArrayArguments.kt
Alexander Udalov e42b151561 Support primitive array annotation arguments in ConstantValueFactory
This has no visible consequences at the moment, but will help once we
need to load such argument from some annotation in the compiler in the
future
2017-06-27 14:53:39 +03:00

25 lines
612 B
Kotlin
Vendored

package test
annotation class Anno(
val bytes: ByteArray,
val shorts: ShortArray,
val ints: IntArray,
val longs: LongArray,
val chars: CharArray,
val floats: FloatArray,
val doubles: DoubleArray,
val booleans: BooleanArray
)
@Anno(
byteArrayOf(42.toByte(), (-1).toByte()),
shortArrayOf((-42).toShort(), 0.toShort()),
intArrayOf(42, 239),
longArrayOf(42L, 239L),
charArrayOf('a', 'Z'),
floatArrayOf(2.72f, 0.0f),
doubleArrayOf(42.0, -3.14),
booleanArrayOf(true, false)
)
class Klass