mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
241 B
Kotlin
14 lines
241 B
Kotlin
trait KTrait : Simple {
|
|
fun bar(): String {
|
|
return test("O") + Simple.testStatic("O")
|
|
}
|
|
}
|
|
|
|
class Test : KTrait {}
|
|
|
|
fun box(): String {
|
|
val test = Test().bar()
|
|
if (test != "OKOK") return "fail $test"
|
|
|
|
return "OK"
|
|
} |