mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
14 lines
246 B
Kotlin
Vendored
14 lines
246 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
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()
|