mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
216 B
Kotlin
Vendored
13 lines
216 B
Kotlin
Vendored
class A {
|
|
val x: Any get() {
|
|
return object : Inner() {
|
|
override fun toString() = foo()
|
|
}
|
|
}
|
|
|
|
open inner class Inner
|
|
fun foo() = "OK"
|
|
}
|
|
|
|
fun box(): String = A().x.toString()
|