Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/traitDefaultCall.fir.kt
T
Alexander Udalov d022bb0248 Switch default JVM target to 1.8
#KT-29405 Fixed
2021-02-01 11:54:04 +01:00

43 lines
484 B
Kotlin
Vendored

// !JVM_TARGET: 1.6
// FILE: Test.java
public interface Test {
default String test() {
return "123";
}
}
// FILE: test.kt
interface KTrait : Test {
fun ktest() {
super.test()
test()
}
}
interface KTrait2 : KTrait {
fun ktest2() {
super.test()
test()
}
}
class A : KTrait {
fun a() {
super.test()
test()
}
}
class A2 : KTrait2 {
fun a() {
super.test()
test()
}
}