typescript-go
typescript-go copied to clipboard
Extra parentheses added when type assertion is used in arrow function with object literal
Steps to reproduce
let fn = (s: number) => ({ s } as {});
Behavior with [email protected]
Emit to:
let fn = (s) => ({ s });
Behavior with tsgo
Extra pair of parentheses added to emit:
let fn = (s) => (({ s }));