mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
205 B
Kotlin
Vendored
12 lines
205 B
Kotlin
Vendored
fun box(): String {
|
|
val result = "OK"
|
|
|
|
open class Local(val ok: Boolean) {
|
|
fun result() = if (ok) result else "Fail"
|
|
}
|
|
|
|
class Derived : Local(true)
|
|
|
|
return Derived().result()
|
|
}
|