Skip to content
New issue

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

Malfunctioning error suppression logic #31271

Closed
ahejlsberg opened this issue May 6, 2019 · 1 comment · Fixed by #31276
Closed

Malfunctioning error suppression logic #31271

ahejlsberg opened this issue May 6, 2019 · 1 comment · Fixed by #31276
Assignees
Labels
Bug A bug in TypeScript

Comments

@ahejlsberg
Copy link
Member

TypeScript Version: 3.5.0-dev

Code

declare let a: () => void;
let b: [string] = a;

Expected behavior:

An error.

Actual behavior:

No error!

Related Issues:

I believe this is related to logic added in #28298. I tracked it as far as suppressNextError being set to true and then defeating the error report. That logic looks pretty suspicious by the way.

@ahejlsberg ahejlsberg added the Bug A bug in TypeScript label May 6, 2019
@ahejlsberg ahejlsberg added this to the TypeScript 3.5.0 milestone May 6, 2019
@ahejlsberg
Copy link
Member Author

@RyanCavanaugh FYI, we should get this fixed for 3.5. Not sure what else that logic might suppress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants