test case and fixes for object and classes inner for enum entry

This commit is contained in:
Alex Tkachman
2012-09-12 20:48:12 +03:00
parent 2c17cb7aa7
commit 0a2f808ec0
3 changed files with 40 additions and 21 deletions
@@ -0,0 +1,20 @@
package test
fun box() = IssueState.DEFAULT.ToString() + IssueState.FIXED.ToString()
enum class IssueState {
DEFAULT {
class D {
val k = ToString()
}
}
FIXED {
override fun ToString() = "K"
object D {
val k = ToString()
}
}
open fun ToString() : String = "O"
}