Skip to content

Missing error when left side of comma operator has no side effects in call expression #2082

@RyanCavanaugh

Description

@RyanCavanaugh

Steps to reproduce

declare var x: any;
(0, x)("10");

Behavior with typescript@5.8

a.ts:2:2 - error TS2695: Left side of comma operator is unused and has no side effects.

2 (0,x)("10");
   ~

Found 1 error in a.ts:2

Behavior with tsgo

No error

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions