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
When encoding a struct that includes the anonymous in order preserving mode, the last field of the anonymous struct is overridden with the next field in the parent struct.
When reproducing the problem, I also found out that anonymous pointer types are not encoded at all.
When encoding a struct that includes the anonymous in order preserving mode, the last field of the anonymous struct is overridden with the next field in the parent struct.
I've fixed this via 34de94e, you can check again with the latest version
When reproducing the problem, I also found out that anonymous pointer types are not encoded at all.
I also check this and I found that's because your pointer is nil. In this case, it can not be dereferenced so it will not be encoded.
Describe the bug
When encoding a struct that includes the anonymous in order preserving mode, the last field of the anonymous struct is overridden with the next field in the parent struct.
When reproducing the problem, I also found out that anonymous pointer types are not encoded at all.
To Reproduce
Following test can be used to reproduce the bug:
Output:
Expected behavior
No error in the above test case.
I.e., the output for all test cases is:
Versions
The text was updated successfully, but these errors were encountered: