mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
19 lines
291 B
Kotlin
Vendored
19 lines
291 B
Kotlin
Vendored
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(arrayOf())
|
|
class C1
|
|
|
|
@EnumArray(arrayOf(Weapon.PAPER, Weapon.ROCK))
|
|
class C2
|