mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
214 B
Kotlin
Vendored
13 lines
214 B
Kotlin
Vendored
class A {
|
|
open inner class Inner(val result: String)
|
|
|
|
fun box(): String {
|
|
val o = object : Inner("OK") {
|
|
fun ok() = result
|
|
}
|
|
return o.ok()
|
|
}
|
|
}
|
|
|
|
fun box() = A().box()
|