-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Widen signature of read!(::IO, ::Array) to AbstractArray #33046
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This either have to support non-dense view with a separate implementation or explicity check for that. The isbitstype
implementation definitely doesn't work with that.
Also need to add test for this case.
After restricting the signature as suggested by Matt, is there anything I need to do here? It's not really clear to me whether I need to test some other cases now |
Bump. |
Bump 🙂 |
I couldn't come up with a test for a non-isbits array, especially since we can't write non-isbits arrays to a buffer 🤔 Any suggestion for other tests is welcome |
Co-Authored-By: Matt Bauman <mbauman@gmail.com>
Looks good to go. @mbauman, if you could give it a once over and merge that would be great. |
Bump 🙂 It would be nice to have this merged by the feature freeze for Julia 1.4 |
Co-Authored-By: Matt Bauman <mbauman@gmail.com>
Fix #33035.