You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect for append to work the same way, when the thing I'm appending is a struct or a slice of struct, since it adds it dynamically one by one anyway. Shouldn't it work with the slice too?
What did you see instead?
cannot use sliceX (type []X) as type []A in append
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
(Taken from this post https://stackoverflow.com/questions/53059641/notation-in-append-doesnt-work-for-appending-different-type-slices/53059817#53059817 , but I had the same problem)
What did you expect to see?
I expect for append to work the same way, when the thing I'm appending is a struct or a slice of struct, since it adds it dynamically one by one anyway. Shouldn't it work with the slice too?
What did you see instead?
cannot use sliceX (type []X) as type []A in append
The text was updated successfully, but these errors were encountered: