Files
kotlin-fork/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

50 lines
867 B
Plaintext
Vendored

fun box(): String {
val obj: <no name provided> = { // BLOCK
local class <no name provided> {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
val end: String
field = "K"
get
fun foo(): String {
return <this>.Some(s = "O").bar()
}
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>())
}
}
local open inner class Base {
constructor(s: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
val s: String
field = s
get
}
}
<no name provided>()
}
return obj.foo()
}