Files
hakorune/apps/tests/macro/exception/postfix_catch_method.hako

13 lines
201 B
Plaintext

// 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) })
}