Minor: add diagnostic test for entries in enum with abstract members

This commit is contained in:
Pavel V. Talanov
2014-10-09 21:03:20 +04:00
parent 12e76f3d04
commit e703de5796
3 changed files with 79 additions and 0 deletions
@@ -0,0 +1,13 @@
enum class EnumClass {
E1 {
override fun foo() = 1
override val bar: String = "a"
}
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>E2<!> {
}
abstract fun foo(): Int
abstract val bar: String
}