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
{{ message }}
Repository navigation
Formatter prints module(await (await M): S), which the parser rejects #8819
let x = module(await (await M): S)
Syntax error!
out.res:3:23-27
Did you forget a `)` here?
Expected: output that parses, for example let x = (module(await (await M)): module(S)).
The same happens for an attributed operand: let x = (module(await (@a M)): module(S)) formats to let x = module(await (@a M): S), which also fails to parse.
23a4197 (#8738) for nested await, and ac96983 (#8735) for attributed operands. Before those changes the formatter dropped the inner await or attribute instead, so its output still parsed.
Impact
Formatting a file that compiles turns it into one that no longer parses. The next compile, or the next format, fails.
Activity