-
-
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
in 1.11, push!
doesn't forward to append!
as it should
#56051
Comments
I have a bit of a hard time seeing this. If anything it feels like the opposite. |
I personally expected both fallbacks to be honest :) Implemented |
I can only speak for myself, but I would not have (and do not) expect this. |
Ah this is an interesting one. It should be pretty easy to change this so that it works again, but I'm not sure that this was intended. As a side note, the vararg |
Perhaps related: #55459 FWIW, I don't see anything unexpected here. I interpret the docstring to mean that if both push and append is implemented, then append is equivalent to repeated pushing. |
push!
docstring:Naturally, one would expect that defining
append!(::MyArray, xs)
would enablepush!
as well. And it does – on 1.10 and below.But 1.11 breaks this.
MWE:
Results:
The text was updated successfully, but these errors were encountered: