e6f4d6e6fa
^KT-65406
51 lines
868 B
Kotlin
Vendored
51 lines
868 B
Kotlin
Vendored
fun box(): String {
|
|
val obj: <no name provided> = { // BLOCK
|
|
local class <no name provided> {
|
|
val end: String
|
|
field = "K"
|
|
get
|
|
|
|
local open inner class Base {
|
|
val s: String
|
|
field = s
|
|
get
|
|
|
|
constructor(s: String) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
local inner class Some : Base {
|
|
constructor(s: String) /* primary */ {
|
|
<this>.super/*Base*/(s = s)
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
fun bar(): String {
|
|
return <this>.<get-s>().plus(other = <this>.<get-end>())
|
|
}
|
|
|
|
}
|
|
|
|
constructor() /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
fun foo(): String {
|
|
return <this>.Some(s = "O").bar()
|
|
}
|
|
|
|
}
|
|
|
|
<no name provided>()
|
|
}
|
|
return obj.foo()
|
|
}
|
|
|