JVM_IR: move classes out of lambdas inlined into initializers
Fixes KT-41465
This commit is contained in:
+10
@@ -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
|
||||
Reference in New Issue
Block a user