Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2f8b8915520217c656f00750d7faa239c6233ece
/
.
/
compiler
/
testData
/
codegen
/
boxWithStdlib
/
boxingOptimization
/
simple.kt
blob: 87df3f72ff18b57b214438c934c95869321a9afd [
file
]
import
kotlin
.
test
.
assertEquals
inline
fun
<
R
>
foo
(
x
:
R
,
block
:
(
R
)
->
R
)
:
R
{
return
block
(
x
)
}
fun box
()
:
String
{
val result
=
foo
(
1
)
{
x
->
x
+
1
}
assertEquals
(
2
,
result
)
return
"OK"
}