-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Invalid test cases for runtime.Marshaler #1501
Comments
Hi, thanks for the bug report! Do you have any ideas for how we could fix this? I think this is a pretty old part of the code. |
Thank you for reporting this bug, @movsb. That was my fault.
Giving a non-zero size to the type could solve the issue. (#1502). |
🐛 Bug Report
Taking address of any element in this slice produces the same value (because the element is an empty struct):
grpc-gateway/runtime/marshaler_registry_test.go
Lines 30 to 52 in 855204b
So, these test cases almost won't work as expected.
As per the last line of golang spec:
To Reproduce
See the code at playground:
Outputs:
Your Environment
Any.
The text was updated successfully, but these errors were encountered: