Don't delete nested default lambda classes during inline transformation

This commit is contained in:
Mikhael Bogdanov
2017-12-21 10:04:02 +01:00
parent b65dcf27ee
commit 50608d0844
14 changed files with 350 additions and 2 deletions
@@ -0,0 +1,17 @@
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
inline fun test(p: String, s: () -> () -> String = { { p } }) =
s()
val same = test("O")
// FILE: 2.kt
import test.*
fun box(): String {
val inlined = test("K")
return same() + inlined()
}