Don't delete nested default lambda classes during inline transformation
This commit is contained in:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
inline fun test(s: () -> () -> String = { { "OK" } }) =
|
||||
s()
|
||||
|
||||
val same = test()
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
val inlined = test()
|
||||
if (same() != "OK") return "fail 1: ${same()}"
|
||||
return inlined()
|
||||
}
|
||||
Reference in New Issue
Block a user