FIR2IR: create local classes on the fly properly

This commit is contained in:
Mikhail Glukhikh
2021-10-29 16:27:19 +03:00
committed by teamcity
parent a05244eca1
commit 67a05883d6
17 changed files with 516 additions and 67 deletions
@@ -0,0 +1,31 @@
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>()
}