Reorganized SAM-related test data.
This commit is contained in:
@@ -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