mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
19 lines
282 B
Kotlin
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
|