The Wayback Machine - https://web.archive.org/web/20250519175204/https://github.com/microsoft/TypeScript/pull/44547
Skip to content

Avoid unexpected any #44547

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

Closed
wants to merge 1 commit into from
Closed

Avoid unexpected any #44547

wants to merge 1 commit into from

Conversation

Kingwl
Copy link
Contributor

@Kingwl Kingwl commented Jun 11, 2021

Fixes nothing

@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jun 11, 2021
@fatcerberus
Copy link

Fixes nothing

🤣

@RyanCavanaugh
Copy link
Member

This isn't an any, it's an evolving let. By the time it's read at the bottom of the function, it's been assigned on all CFA branches, and has the expected type. If we were to read it before definite initialization, it'd be an implicit any, and if an incorrect type were written to it, we'd get a type error at the call to createVariableDeclarationList.

@Kingwl
Copy link
Contributor Author

Kingwl commented Jun 11, 2021

it's been assigned on all CFA branches. and has the expected type.

Okay. It's seems a expected any here.

@Kingwl Kingwl closed this Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants