Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
functions
/
nothisnoclosure.kt
blob: 68369ae57eba0f12a39ddb5cd3053570a6658af1 [
file
] [
log
] [
blame
]
fun foo
(
x
:
Int
)
{}
fun loop
(
times
:
Int
)
{
var
left
=
times
while
(
left
>
0
)
{
val u
:
(
value
:
Int
)
->
Unit
=
{
foo
(
it
)
}
u
(
left
--)
}
}
fun box
()
:
String
{
loop
(
5
)
return
"OK"
}