Open codejamtc opened 5 years ago
This applies to most of the value types
I can add set / ordered-set successfully: @codejamtc https://monosnap.com/file/bxbhKRWZ1whp0f2FvUHMFcrP4iDsBu
@standlove After I add one type I can't add another one still. Please check https://www.screencast.com/t/SfoOcMri
That's because they have the same key ... (You don't add anything to the end of the existing Key name).
But the code should report duplicated key error here.
ok so one part of the issue, is that in a branch when we are overriding , we are not catching that (mind that overrinding can also be across types , so if there is a Hash Map
with key hashMap
, and we add a new string with key hashMap
, this should also be caught)
another, sort of related issue, is that overriding is not caught at all if its from the command line
so if there is a Hash Map
with key key1
and we enter the command SET key1 value1
, it will be overrided without warning or error
No need to consider this case for CLI.
Actual: Set is not created if there are already ordered set in a branch
Expected: Should able to create a set
Browser(s): Chrome 71.0.3578.98 (Windows)