Files
kotlin-fork/compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.kt.txt
T
2021-11-09 21:04:38 +03:00

32 lines
498 B
Kotlin
Vendored

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