Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
06ab8cc69e303e70578de24dd9a1cf4ebafff93a
/
.
/
compiler
/
testData
/
codegen
/
box
/
functions
/
kt1739.kt
blob: 8e43f285cebd27b9ce2df8f016519c60d823aa99 [
file
]
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
public
class
RunnableFunctionWrapper
(
val f
:
()
->
Unit
)
:
Runnable
{
public
override
fun run
()
{
f
()
}
}
fun box
()
:
String
{
var
res
=
""
RunnableFunctionWrapper
({
res
=
"OK"
}).
run
()
return
res
}