Files
kotlin-fork/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.fir.kt.txt
T
2024-02-16 10:19:38 +00:00

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()
}