56d1184515
Condition was too strict if @JvmDefault implicitly hidden by class in inheritance. Diagnostic is redundant cause there isn't breaking change depending on interface method generation strategy and delegating stub generation in inheriting class.
32 lines
530 B
Kotlin
Vendored
32 lines
530 B
Kotlin
Vendored
// !JVM_TARGET: 1.8
|
|
interface A {
|
|
<!JVM_DEFAULT_IN_DECLARATION!>@JvmDefault
|
|
fun test()<!>
|
|
}
|
|
|
|
interface B{
|
|
fun test() {
|
|
}
|
|
}
|
|
|
|
<!MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>interface AB<!>: A, B
|
|
|
|
<!MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>interface BA<!>: B, A
|
|
|
|
class C : A, B {
|
|
override fun test() {
|
|
super<B>.test()
|
|
}
|
|
}
|
|
|
|
class D : B, A {
|
|
override fun test() {
|
|
super<B>.test()
|
|
}
|
|
}
|
|
|
|
<!MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>class E<!>: B, A {
|
|
fun foo() {
|
|
super<B>.test()
|
|
}
|
|
} |