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.9.3
Search Terms: "any array", "any list", "any prevents"
Code
// Works properly let x: number = 123; let y: number[] = [ 123, x, true, ];
// Doesn't work properly let x: any = 123; let y: number[] = [ 123, x, true, ];
Expected behavior: For both code snippets to result in the same compile error.
Actual behavior: The second snippet compiles without any error. This is unsound.
Playground Link: First Second
Related Issues: No
The text was updated successfully, but these errors were encountered:
Duplicate #19541
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: 3.9.3
Search Terms: "any array", "any list", "any prevents"
Code
Expected behavior: For both code snippets to result in the same compile error.
Actual behavior: The second snippet compiles without any error. This is unsound.
Playground Link: First Second
Related Issues: No
The text was updated successfully, but these errors were encountered: