Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
closures
/
closureWithParameterAndBoxing.kt
blob: a1a13fb62a63a052905e83d6bf3a0682cb079890 [
file
]
fun box
()
:
String
{
return
if
(
apply
(
5
,
{
arg
:
Int
->
arg
+
13
}
)
==
18
)
"OK"
else
"fail"
}
fun apply
(
arg
:
Int
,
f
:
(
p
:
Int
)
->
Int
)
:
Int
{
return
f
(
arg
)
}