-
Notifications
You must be signed in to change notification settings - Fork 18k
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
encoding/json: concrete types of existing map keys are not respected #4900
Labels
Milestone
Comments
Oops, I just realized that the CL link is wrong. This is the correct link: https://golang.org/cl/7383052/ |
Here's another example, this time with structs: http://play.golang.org/p/lXhGNrStXx |
The behavior in the current code does disagree with the docs. However, the behavior appears to be consistent for all places interface values are encountered; maps are not the odd man out. Given that, I believe the fix should be to document the true behavior, not to change the behavior this late in the game. Sent CL 13400044. |
This issue was closed by revision 5d2c3a6. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: