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:
9
apps/tests/macro/exception/postfix_catch.hako
Normal file
9
apps/tests/macro/exception/postfix_catch.hako
Normal file
@ -0,0 +1,9 @@
|
||||
// Phase 1 sugar: postfix_catch(expr, "Error", fn(e){ body })
|
||||
function do_work(args) {
|
||||
return 0
|
||||
}
|
||||
|
||||
function main(args) {
|
||||
postfix_catch(do_work(args), "Error", fn(e){ print(e) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user