-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
out of range index in a tuple magically works #5203
Comments
It is currently per spec, but I don't think this behavior is desirable. This should probably be an error by some new rule. |
Well the problem is that you're going to get that numeric index signature from |
I know guys you are trying your best, but I don't see an array, I only see a tuple which is not an array in a broad sense. |
👍 This is invalid behavior. |
I ran into exactly the same issue. |
See proposal #6229 |
It's now an error for tuples to have extra elements (#17765), so maybe we could revisit this? @sandersn @RyanCavanaugh |
@Aleksey-Bykov the arc of language design is long but it bends toward justice. Accepting PRs |
god works in mysterious ways |
By design, isn't it?
The text was updated successfully, but these errors were encountered: