FIR2IR: create local classes on the fly properly
This commit is contained in:
committed by
teamcity
parent
a05244eca1
commit
67a05883d6
+31
@@ -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>()
|
||||
}
|
||||
Reference in New Issue
Block a user