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

implicitAny doesn't work for 2.5.2 #19416

Closed
michael8090 opened this issue Oct 23, 2017 · 2 comments
Closed

implicitAny doesn't work for 2.5.2 #19416

michael8090 opened this issue Oct 23, 2017 · 2 comments
Labels
Working as Intended The behavior described is the intended behavior; this is not a bug

Comments

@michael8090
Copy link

TypeScript Version: 2.5.2

Code

const a = [];

Expected behavior:
TS should show an error message when noImplicitAny is on;
Actual behavior:
No error message is shown, and a has a type of "any[]", as below:

image

@ahejlsberg
Copy link
Member

This is working as intended. See #11432.

@ahejlsberg ahejlsberg added the Working as Intended The behavior described is the intended behavior; this is not a bug label Oct 23, 2017
@michael8090
Copy link
Author

@ahejlsberg You're right. Thanks

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Working as Intended The behavior described is the intended behavior; this is not a bug
Projects
None yet
Development

No branches or pull requests

2 participants