test for obsolete KT-1119 & proper final flag for enum class with entries overriding methods/properties

This commit is contained in:
Alex Tkachman
2012-08-15 16:06:06 +03:00
parent 31db3456ca
commit 813c7d0871
3 changed files with 22 additions and 0 deletions
@@ -0,0 +1,11 @@
enum class Direction() {
NORTH {
val someSpecialValue = "OK"
}
SOUTH
WEST
EAST
}
fun box() = Direction.NORTH.someSpecialValue