Add tests for KT-48180

This commit is contained in:
pyos
2021-08-10 11:16:22 +02:00
committed by Mikhael Bogdanov
parent ff6de0fe6a
commit d3de0109ca
14 changed files with 231 additions and 0 deletions
@@ -0,0 +1,12 @@
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
inline fun foo(x: () -> String, y: () -> String, z: () -> String = { "" }) =
x() + y() + z()
// FILE: 2.kt
import test.*
fun box(): String = foo("O"::toString, { "K" })