ClojureScript

{x :foo y :bar} can produce a map with a duplicate key

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Similar to CLJS-583:

(def x 1)
(def y 1)
{x :foo y :bar}
;= {1 :foo, 1 :bar}

Patch forthcoming.

Activity

Michał Marczyk made changes -
Field Original Value New Value
Attachment 0002-CLJS-584-throw-on-duplicate-keys-in-map-literals.patch [ 12231 ]
Michał Marczyk made changes -
Attachment 0002-CLJS-584-throw-on-duplicate-keys-in-map-literals.patch [ 12231 ]
Michał Marczyk made changes -
Michał Marczyk made changes -
Summary #{x :foo y :bar} can produce a map with a duplicate key {x :foo y :bar} can produce a map with a duplicate key
David Nolen made changes -
Assignee Michał Marczyk [ michalmarczyk ] David Nolen [ dnolen ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: