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

33 lines
499 B
Kotlin
Vendored

fun box(): String {
return { // BLOCK
local class <no name provided> {
val a: A
field = <this>.A(ok = "OK")
get
local inner class A {
val ok: String
field = ok
get
constructor(ok: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
<no name provided>()
}.<get-a>().<get-ok>()
}