Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/annotations/jvmDefault/jvmDefaultInInheritance.fir.kt
T

37 lines
471 B
Kotlin
Vendored

// !JVM_TARGET: 1.8
interface A {
@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 {
@JvmDefault
override fun test() {
}
}
class BarWithJvmDefaultSuper: BarWithJvmDefault()