Skip to content

* support default value for map key & value#1087

Closed
shrimpz wants to merge 1 commit intoprotobufjs:masterfrom
shrimpz:support_defaultvalue_for_map_key_value
Closed

* support default value for map key & value#1087
shrimpz wants to merge 1 commit intoprotobufjs:masterfrom
shrimpz:support_defaultvalue_for_map_key_value

Conversation

@shrimpz
Copy link
Copy Markdown

@shrimpz shrimpz commented Jul 17, 2018

message TestMap
{
map<int32, int32> x = 1;
}

tm.x[0] = 10;
tm.x[10] = 0;

@alexander-fenster
Copy link
Copy Markdown
Contributor

@shrimpz I don't feel I really understand the code changes; can you please add some tests that show what exactly the changed code will do? Thanks!

@adriancable
Copy link
Copy Markdown

@shrimpz (cc: @alexander-fenster) - I'm also stuck by the issue that your pull request fixes. Do you know what happened to it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants