Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/annotations/jvmDefault/superCallAmbiguity.fir.kt
T
Andrey Zinovyev de3f31cf78 [FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics
No support for inheritance deprecations
and deprecations in qualifier's parts
2021-07-07 16:19:28 +03:00

32 lines
538 B
Kotlin
Vendored

// !JVM_TARGET: 1.8
interface A {
@<!DEPRECATION!>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
interface C : A, B {
@<!DEPRECATION!>JvmDefault<!>
override fun test() {
super<B>.test()
super<A>.test()
}
}
interface D : B, A {
@<!DEPRECATION!>JvmDefault<!>
override fun test() {
super<B>.test()
super<A>.test()
}
}