Files
kotlin-fork/compiler/testData/serialization/annotationArguments/enum.kt
T
Alexander Udalov 63bfa004fd Introduce binary representation for annotations
Will be used where annotations can't be stored elsewhere: for example,
built-ins, JS, type annotations on JDK<8
2014-12-03 16:10:19 +03:00

19 lines
282 B
Kotlin

package test
enum class Weapon {
ROCK
PAPER
SCISSORS
}
annotation class JustEnum(val weapon: Weapon)
annotation class EnumArray(val enumArray: Array<Weapon>)
JustEnum(Weapon.SCISSORS)
EnumArray(array())
class C1
EnumArray(array(Weapon.PAPER, Weapon.ROCK))
class C2