Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
box
/
finally
/
kt4134.kt
blob: 24e4750d0892b91cc8171a26784c3a119699cea1 [
file
] [
log
] [
blame
]
fun
<
T
,
R
>
io
(
s
:
R
,
a
:
(
R
)
->
T
):
T
{
try
{
return
a
(
s
)
}
finally
{
try
{
s
.
toString
()
}
catch
(
e
:
Exception
)
{
//NOP
}
}
}
fun box
()
:
String
{
return
io
((
"OK"
),
{
it
})
}