test for obsolete KT-1119 & proper final flag for enum class with entries overriding methods/properties
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
enum class Direction() {
|
||||
NORTH {
|
||||
val someSpecialValue = "OK"
|
||||
}
|
||||
|
||||
SOUTH
|
||||
WEST
|
||||
EAST
|
||||
}
|
||||
|
||||
fun box() = Direction.NORTH.someSpecialValue
|
||||
Reference in New Issue
Block a user