Rework test for KT1119

This commit is contained in:
Pavel V. Talanov
2012-11-19 20:43:34 +04:00
parent 6017604e38
commit 7f617de8ac
@@ -1,11 +1,12 @@
enum class Direction() { enum class Direction() {
NORTH { NORTH {
val someSpecialValue = "OK" val someSpecialValue = "OK"
override fun f() = someSpecialValue
} }
SOUTH
WEST abstract fun f():String
EAST
} }
fun box() = Direction.NORTH.someSpecialValue fun box() = Direction.NORTH.f()