mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
9 lines
178 B
Kotlin
Vendored
9 lines
178 B
Kotlin
Vendored
enum class E(val x: Int, val y: Int) {
|
|
A(1, 2),
|
|
B(1),
|
|
C; // no constructor call needed even here
|
|
|
|
constructor(): this(0, 0)
|
|
constructor(x: Int): this(x, 0)
|
|
}
|