18 lines
211 B
Kotlin
Vendored
18 lines
211 B
Kotlin
Vendored
package enums
|
|
|
|
interface Base {
|
|
fun f() {
|
|
}
|
|
}
|
|
|
|
enum class E(val i: Int = 0): Base {
|
|
E1() {
|
|
override fun f() {
|
|
}
|
|
},
|
|
E2(3) {
|
|
override fun f() {
|
|
}
|
|
},
|
|
E3
|
|
} |