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: 3.3.0-dev.20190105
Search Terms: evolving array type, indexOf
Code
const arr = []; arr.push(1); while (true) { const index = arr.indexOf(1); arr[index] = 1; }
Expected behavior:
No errors.
Actual behavior:
'index' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
Playground Link: (turn on noImplicitAny)
noImplicitAny
Related Issues: #19955
In the wild: GoogleChrome/lighthouse#6874 (comment). Note @brendankenny's educated guess on what is going on.
The text was updated successfully, but these errors were encountered:
still an issue in 3.4.1
3.4.1
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: 3.3.0-dev.20190105
Search Terms: evolving array type, indexOf
Code
Expected behavior:
No errors.
Actual behavior:
Playground Link: (turn on
noImplicitAny
)Related Issues: #19955
In the wild: GoogleChrome/lighthouse#6874 (comment). Note @brendankenny's educated guess on what is going on.
The text was updated successfully, but these errors were encountered: