Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
funInterface
/
funConversionInVararg.kt
blob: e10a1a07e1b912754187bbb17bf0c2ce32896f85 [
file
] [
log
] [
blame
]
fun
interface
MyRunnable
{
fun run
()
}
fun box
():
String
{
var
result
=
"failed"
val r
=
MyRunnable
{
result
+=
"K"
}
foo
({
result
=
"O"
},
r
)
return
result
}
fun foo
(
vararg rs
:
MyRunnable
)
{
for
(
r
in
rs
)
{
r
.
run
()
}
}