-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
According to the specification section 9.1:
SYMBOLis a pseudo-type indicating that the argument MUST be a plain unquoted identifier; such operators receive the symbol name rather than its runtime value.
and the specification section 9.2.4:
Structured exception handling MUST use either
TRY{ ... }CATCH{ ... }orTRY{ ... }CATCH(SYMBOL: name){ ... }. TheCATCHblock MUST immediately follow itsTRYblock, and exactly oneCATCHblock MUST be provided for eachTRYstatement.
The implementation, however, allows for the type annotation SYMBOL before the error name in the second form of CATCH, despite SYMBOL being a pseudo-type used in the documentation only.
prefix -source "TRY{}CATCH(SYMBOL: err){};PRINT('Shouldn\'t reach here.')"
Shouldn't reach here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working