phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
12
apps/tests/macro/exception/postfix_catch_method.hako
Normal file
12
apps/tests/macro/exception/postfix_catch_method.hako
Normal file
@ -0,0 +1,12 @@
|
||||
// Phase 1 sugar: method call wrapped by postfix_catch
|
||||
box Worker {
|
||||
run() {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
function main(args) {
|
||||
local w = new Worker()
|
||||
postfix_catch(w.run(), "Error", fn(e){ print(e) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user