You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following code:
try {
functionCall();
} catch (a + b).c();
This should match the LastCatch rule because (a + b).c() falls under the category of NoScopeNonEmptyStatement, but dmd's parser only checks the opening paren after the 'catch' token and tries going for the Catch rule.
The text was updated successfully, but these errors were encountered:
I've tried to fix this in D-Scanner, and so far I haven't figured out a way to eliminate the ambiguity. I support implementing issue 12558 and removing the LastCatch rule from the language entirely.
briancschott reported this on 2013-06-02T16:03:33Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=10247
Description
Consider the following code: try { functionCall(); } catch (a + b).c(); This should match the LastCatch rule because (a + b).c() falls under the category of NoScopeNonEmptyStatement, but dmd's parser only checks the opening paren after the 'catch' token and tries going for the Catch rule.The text was updated successfully, but these errors were encountered: