25 lines
371 B
Kotlin
Vendored
25 lines
371 B
Kotlin
Vendored
// !API_VERSION: 1.3
|
|
// !JVM_DEFAULT_MODE: enable
|
|
// JVM_TARGET: 1.8
|
|
// WITH_RUNTIME
|
|
// FILE: 1.kt
|
|
interface Test {
|
|
@JvmDefault
|
|
fun test(): String {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
interface Test2 : Test {
|
|
@JvmDefault
|
|
override fun test(): String {
|
|
return super.test()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return object : Test2 {}.test()
|
|
}
|