mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
18 lines
367 B
Kotlin
Vendored
18 lines
367 B
Kotlin
Vendored
fun box(): String {
|
|
val capture = "oh"
|
|
|
|
class Local {
|
|
val captured = capture
|
|
|
|
open inner class Inner(val d: Double = -1.0, val s: String, vararg val y: Int) {
|
|
open fun result() = "Fail"
|
|
}
|
|
|
|
val obj = object : Inner(s = "OK") {
|
|
override fun result() = s
|
|
}
|
|
}
|
|
|
|
return Local().obj.result()
|
|
}
|