Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
closures
/
simplestClosureAndBoxing.kt
blob: 275ec10096f047eeadb4c345af9e362a0fe30f00 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
fun box
()
:
String
{
return
if
(
int_invoker
(
{
7
}
)
==
7
)
"OK"
else
"fail"
}
fun int_invoker
(
gen
:
()
->
Int
)
:
Int
{
return
gen
()
}