mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
286 B
Kotlin
Vendored
19 lines
286 B
Kotlin
Vendored
class A {
|
|
var a: String = "Fail"
|
|
|
|
init {
|
|
open class B() {
|
|
open fun s() : String = "O"
|
|
}
|
|
|
|
val o = object : B() {
|
|
override fun s(): String = "K"
|
|
}
|
|
|
|
a = B().s() + o.s()
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
return A().a
|
|
} |