mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
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
25 lines
612 B
Kotlin
Vendored
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
|