3120a35a88
The tests are removed because JvmDefault is going to be deprecated with error in KT-54746 and removed later in KT-57696. Many of the removed tests already had existing counterparts with the new modes `all` and `all-compatibility`. In this change, I've added such tests where they were missing, and removed tests which were testing behavior specific to the JvmDefault annotation, such as some diagnostics. #KT-54746
62 lines
806 B
Kotlin
Vendored
62 lines
806 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !JVM_TARGET: 1.8
|
|
// !JVM_DEFAULT_MODE: all
|
|
|
|
interface A<T> {
|
|
fun test(p: T) {
|
|
}
|
|
}
|
|
|
|
@JvmDefaultWithCompatibility
|
|
interface ANonDefault {
|
|
fun test(p: String) {}
|
|
}
|
|
|
|
interface B<T> : A<T> {
|
|
|
|
override fun test(p: T)
|
|
{}
|
|
}
|
|
|
|
interface C<T> : A<T>, ANonDefault {
|
|
|
|
override fun test(p: T)
|
|
{}
|
|
|
|
override fun test(p: String) {
|
|
}
|
|
}
|
|
|
|
interface C1 : C<String> {
|
|
override fun test(p: String) {
|
|
|
|
}
|
|
}
|
|
|
|
interface C2 : C<String>, ANonDefault {
|
|
override fun test(p: String) {
|
|
|
|
}
|
|
}
|
|
|
|
interface D<T> : ANonDefault, A<T> {
|
|
|
|
override fun test(p: T)
|
|
{}
|
|
|
|
override fun test(p: String) {
|
|
}
|
|
}
|
|
|
|
interface D1 : D<String> {
|
|
override fun test(p: String) {
|
|
|
|
}
|
|
}
|
|
|
|
interface D2 : ANonDefault, D<String> {
|
|
override fun test(p: String) {
|
|
|
|
}
|
|
}
|