Files
kotlin-fork/compiler/testData/diagnostics/tests/override/clashesOnInheritance/kt9550.kt
T
Dmitry Petrov 30c2abba3c KT-9550: distinguish signature conflict on override from signature conflict of inherited members.
Add a common OverridingStrategy class for cases where we don't care (yet) about precise diagnostics.
2016-02-19 15:59:08 +03:00

14 lines
209 B
Kotlin
Vendored

interface A {
fun <T> foo()
fun <T> bar()
}
interface B {
fun foo()
fun bar()
}
<!CONFLICTING_INHERITED_MEMBERS!>interface C1<!> : A, B {
<!CONFLICTING_OVERLOADS!>override fun bar()<!>
}