We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript Version: master at f304b81fa54285f Search Terms: comma side effects
f304b81fa54285f
Code
declare const obj: any; console.log(`${JSON.stringify(obj), undefined, 2}`);
Expected behavior: error TS2695: Left side of comma operator is unused and has no side effects.
Actual behavior: No errors
Playground Link: http://www.typescriptlang.org/play/#code/CYUwxgNghgTiAEYD2A7AzgF3kgRgKwC54oUBPAbgChl0kIQA6CJAcwAoADAEgG8ApAMoB5AHINMMAJYoWkgGak2uPAEoANPACuKUHOkhgGgEwBfDiqpA
Related Issues: #10814
The text was updated successfully, but these errors were encountered:
(0, object.property)()
Successfully merging a pull request may close this issue.
TypeScript Version: master at
f304b81fa54285f
Search Terms: comma side effects
Code
Expected behavior: error TS2695: Left side of comma operator is unused and has no side effects.
Actual behavior: No errors
Playground Link: http://www.typescriptlang.org/play/#code/CYUwxgNghgTiAEYD2A7AzgF3kgRgKwC54oUBPAbgChl0kIQA6CJAcwAoADAEgG8ApAMoB5AHINMMAJYoWkgGak2uPAEoANPACuKUHOkhgGgEwBfDiqpA
Related Issues:
#10814
The text was updated successfully, but these errors were encountered: