4f7599076c
This reverts commit c11f3868
32 lines
570 B
Kotlin
Vendored
32 lines
570 B
Kotlin
Vendored
// !JVM_TARGET: 1.8
|
|
// !JVM_DEFAULT_MODE: enable
|
|
|
|
interface A {
|
|
@JvmDefault
|
|
fun test() {}
|
|
}
|
|
|
|
interface Abstract : A {
|
|
<!JVM_DEFAULT_REQUIRED_FOR_OVERRIDE!>override fun test()<!>
|
|
}
|
|
|
|
interface ANonDefault {
|
|
fun test() {}
|
|
}
|
|
|
|
interface B: A {
|
|
<!JVM_DEFAULT_REQUIRED_FOR_OVERRIDE!>override fun test()<!> {}
|
|
}
|
|
|
|
interface C: ANonDefault, A {
|
|
<!JVM_DEFAULT_REQUIRED_FOR_OVERRIDE!>override fun test()<!> {}
|
|
}
|
|
|
|
interface D: A, ANonDefault {
|
|
<!JVM_DEFAULT_REQUIRED_FOR_OVERRIDE!>override fun test()<!> {}
|
|
}
|
|
|
|
class Foo : A {
|
|
override fun test() {}
|
|
}
|