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
Maybe OT Since you are fine-tuning how instantiation expressions are parsed: it's weird that a<b> ?? c is not valid code, from a syntactic point of view.
Right, for error recovery reasons we currently consider binary operators to be expression starters. We definitely shouldn't when they follow a (potential) instantiation expression.
Honestly, the more I look at this the more I think the rule should be that a potential instantiation expression immediately followed by a line break is actually considered an instantiation expression followed by ASI, regardless of the next token. Consider:
Originally posted by @nicolo-ribaudo in #49353 (comment)
The text was updated successfully, but these errors were encountered: