docs/features/throwexpr.md
We extend the set of expression forms to include
throw_expression
: 'throw' null_coalescing_expression
;
null_coalescing_expression
: throw_expression
;
The type rules are as follows:
The flow-analysis rules are as follows:
A throw expression is permitted in only the following syntactic contexts:
?:??Note: the rest of the semantics of the throw expression are identical to the semantics of the throw_statement in the current language specification.