-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Range#size returns an Union instead of an Int32 #14587
Comments
Quoting PR comments to bring the general discussion back here: @straight-shoota #14588 (comment)
@beta-ziliani #14588 (comment)
That's also not good because I think casting to We'll eventually need to increase that size type in order to support bigger collections. But while
I think we should explain that caveat explicitly in the API docs and that's it. We should however consider adding an alternative method that unconditionally returns |
The following snippet:
returns
instead of the expected
The text was updated successfully, but these errors were encountered: