Skip to content

Type assertion emit loses parenthesis #9766

Description

@evmar
(x + 1 as number) * 3

drops the parens:

x + 1 * 3;

Playground link:
https://www.typescriptlang.org/play/#src=%0D%0A%20(x%20%2B%201%20as%20number)%20*%203%0D%0A%20

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions