mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
18 lines
332 B
Kotlin
Vendored
18 lines
332 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class A(
|
|
val a: String = {
|
|
open class B() {
|
|
open fun s() : String = "O"
|
|
}
|
|
|
|
val o = object : B() {
|
|
override fun s(): String = "K"
|
|
}
|
|
|
|
B().s() + o.s()
|
|
}()
|
|
)
|
|
|
|
fun box() : String {
|
|
return A().a
|
|
} |