Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/annotations/jvmDefault/jvmDefaultInInheritance.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

37 lines
507 B
Kotlin
Vendored

// !JVM_TARGET: 1.8
interface A {
@<!DEPRECATION!>JvmDefault<!>
fun test() {
}
}
interface B : A {
}
open class Foo : B
open class Foo2 : B, A
open class FooNoError : B {
override fun test() {
}
}
open class Foo2NoError : B, A {
override fun test() {
}
}
class Bar : Foo()
class Bar2 : Foo(), A
class Bar3 : Foo(), B
open class BarWithJvmDefault : B {
@<!DEPRECATION!>JvmDefault<!>
override fun test() {
}
}
class BarWithJvmDefaultSuper: BarWithJvmDefault()