1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
17 lines
275 B
Kotlin
17 lines
275 B
Kotlin
// WITH_RUNTIME
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
inline fun foo(x: String, block: (String) -> String) = block(x)
|
|
|
|
fun box(): String {
|
|
val res = foo("abc") {
|
|
fun bar(y: String) = y + "cde"
|
|
bar(it)
|
|
}
|
|
|
|
assertEquals("abccde", res)
|
|
|
|
return "OK"
|
|
}
|