1a312140e9
Grammar changed accordingly. Semicolons prohibited after an entry except the last one. Only one initializer is allowed per entry. EnumReferenceExpression AST node introduced. Some tests fixed, a pair of new tests written. Kotlin code inside project fixed. Formatter and intendation tests fixed accordingly. Stub version is incremented.
13 lines
286 B
Kotlin
Vendored
13 lines
286 B
Kotlin
Vendored
enum class Color(val rgb : Int) {
|
|
RED(0xFF000) {
|
|
override fun foo(): Int { return 1 }
|
|
},
|
|
GREEN(0x00FF00) {
|
|
override fun foo(): Int { return 2 }
|
|
},
|
|
BLUE(0x0000FF) {
|
|
override fun foo(): Int { return 3 }
|
|
};
|
|
|
|
abstract fun foo(): Int
|
|
} |