mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
11 lines
147 B
Kotlin
11 lines
147 B
Kotlin
trait A : MyInt {
|
|
override public fun test(): String? {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
class B: A
|
|
|
|
fun box() : String {
|
|
return B().test()!!
|
|
} |