Actions
Bug #10315
closedOverride policy for duplicated keywords
    Bug #10315:
    Override policy for duplicated keywords
  
Description
p({k1: 'a', k1: 'b'})         #=> {:k1=>"b"}
p({k1: 'a'}.merge({k1: 'b'})) #=> {:k1=>"b"}
p(k1: 'a', k1: 'b')           #=> {:k1=>"b"}
p(k1: 'a', **{k1: 'b'})       #=> {:k1=>"a"}
IMO the last case should also output {:k1=>"b"}.
Nobu said that we should show warning for such duplication (especially for 1st and 3rd cases) because we can detect duplication while parsing/compiling.
Actions