buzz
buzz copied to clipboard
Catch clauses should be blocks
Right now they are functions so we can't do:
fun hello() > bool {
willFail() catch {
| here we return from this catch clause instead of returning from the enclosing function
default -> return false;
}
return true;
}