KT-1739: test for obsolete issue

This commit is contained in:
Alex Tkachman
2012-08-04 22:58:33 +03:00
parent fcab204459
commit 9819095451
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,11 @@
public class RunnableFunctionWrapper(val f : () -> Unit) : Runnable {
public override fun run() {
f()
}
}
fun box() : String {
var res = ""
RunnableFunctionWrapper({ res = "OK" }).run()
return res
}