mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
24 lines
271 B
Kotlin
Vendored
24 lines
271 B
Kotlin
Vendored
// JVM_TARGET: 1.8
|
|
|
|
|
|
interface Test {
|
|
fun test(): String {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
interface Test2 : Test {
|
|
override fun test(): String {
|
|
return super.test()
|
|
}
|
|
}
|
|
|
|
|
|
class TestClass : Test2 {
|
|
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
return TestClass().test()
|
|
} |