Files
kotlin-fork/compiler/testData/diagnostics/tests/override/ParentInheritsManyImplementations.kt
T
Svetlana Isakova 65ddcd0473 No repeat 'many impl member not implemented' error
in a subclass if there is one in a superclass
2012-08-16 18:39:23 +04:00

18 lines
185 B
Kotlin

package d
trait A {
fun foo() = 1
}
trait B {
fun foo() = 2
}
open class <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>C<!> : A, B {}
trait E {
fun foo(): Int
}
class D : C() {}