Files
kotlin/compiler/testData/diagnostics/tests/enum/enumImplementingTrait.kt
2014-10-10 17:43:31 +04:00

21 lines
334 B
Kotlin

trait T1 {
fun foo()
}
enum class EnumImplementingTraitWithFun: T1 {
E1 {
override fun foo() {}
}
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>E2<!>
}
trait T2 {
val bar: Int
}
enum class EnumImplementingTraitWithVal: T2 {
E1 {
override val bar = 1
}
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>E2<!>
}