JVM_IR: move classes out of lambdas inlined into initializers

Fixes KT-41465
This commit is contained in:
pyos
2020-08-31 13:12:58 +02:00
committed by Alexander Udalov
parent 9775a2148a
commit 6b65a2ea7d
9 changed files with 69 additions and 6 deletions
@@ -0,0 +1,10 @@
inline fun myRun(x: () -> String) = x()
class C {
val x = myRun { { "OK" }() }
constructor(y: Int)
constructor(y: String)
}
fun box(): String = C("").x