KT-1739: test for obsolete issue
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user