43 lines
583 B
Kotlin
Vendored
43 lines
583 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FILE: Test.java
|
|
public interface Test {
|
|
default String test() {
|
|
return "123";
|
|
}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
interface KTrait : Test {
|
|
fun ktest() {
|
|
super.<!INTERFACE_CANT_CALL_DEFAULT_METHOD_VIA_SUPER!>test<!>()
|
|
|
|
test()
|
|
}
|
|
}
|
|
|
|
|
|
interface KTrait2 : KTrait {
|
|
fun ktest2() {
|
|
super.<!INTERFACE_CANT_CALL_DEFAULT_METHOD_VIA_SUPER!>test<!>()
|
|
|
|
test()
|
|
}
|
|
}
|
|
|
|
class A : KTrait {
|
|
fun a() {
|
|
super.test()
|
|
|
|
test()
|
|
}
|
|
}
|
|
|
|
|
|
class A2 : KTrait2 {
|
|
fun a() {
|
|
super.test()
|
|
|
|
test()
|
|
}
|
|
}
|