Files
kotlin/compiler/testData/diagnostics/tests/enum/enumImplementingTrait.kt
2015-05-12 19:43:17 +02:00

21 lines
342 B
Kotlin

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