Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
boxingOptimization
/
foldRange.kt
blob: ea1df3a32a82a51f6259e343e6f904bd9e7030f8 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
import
kotlin
.
test
.
assertEquals
fun box
():
String
{
val result
=
(
1.
.
5
).
fold
(
0
)
{
x
,
y
->
x
+
y
}
assertEquals
(
15
,
result
)
return
"OK"
}