mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
18 lines
327 B
Kotlin
Vendored
18 lines
327 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
fun box(): String {
|
|
class Local {
|
|
open inner class Inner(val s: String) {
|
|
open fun result() = "Fail"
|
|
}
|
|
|
|
val realResult = "OK"
|
|
|
|
val obj = object : Inner(realResult) {
|
|
override fun result() = s
|
|
}
|
|
}
|
|
|
|
return Local().obj.result()
|
|
}
|