Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2f8b8915520217c656f00750d7faa239c6233ece
/
.
/
compiler
/
testData
/
codegen
/
boxWithStdlib
/
localFunInLambda
/
simple.kt
blob: 8f86cc3c384eebd527d0ba5f8b87ca906b0fa64e [
file
]
import
kotlin
.
test
.
assertEquals
inline
fun foo
(
x
:
String
,
block
:
(
String
)
->
String
)
=
block
(
x
)
fun box
():
String
{
fun bar
(
y
:
String
)
=
y
+
"cde"
val res
=
foo
(
"abc"
)
{
bar
(
it
)
}
assertEquals
(
"abccde"
,
res
)
return
"OK"
}