Merge boxMultiFile testData into box, delete BoxMultiFile test
This commit is contained in:
committed by
Alexander Udalov
parent
e115f80d6c
commit
16a0ddd2fb
@@ -0,0 +1,11 @@
|
||||
class Box(val s: String) {
|
||||
fun extract(): String {
|
||||
var result = ""
|
||||
Runnable { result = s }.run() // capturing this and local var
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Box("OK").extract()
|
||||
}
|
||||
Reference in New Issue
Block a user