<< Back to previous view

[CLJ-1235] Disappearance of non-evaluated metadata for empty local collection Created: 25/Jul/13  Updated: 25/Jul/13  Resolved: 25/Jul/13

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Jozef Wagner Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None


 Description   

It's a contrived example, but it shows the problem:

Clojure 1.6.0-master-SNAPSHOT
user=> (def v (quote ^{x 3} []))
#'user/v
user=> (meta v)
{x 3}
user=> (let [v (quote ^{x 3} [])] (meta v))
nil ;; BUG, it should return {x 3}
user=> (let [v (read-string "^{x 3} []")] (meta v))
{x 3}
user=> (let [v (quote ^{x 3} [1 2 3])] (meta v))
{x 3} ;; Non empty colls behave correctly.


 Comments   
Comment by Nicola Mometto [ 25/Jul/13 5:13 AM ]

duplicate of http://dev.clojure.org/jira/browse/CLJ-1187

I'm closing this

Generated at Mon Sep 22 23:31:20 CDT 2014 using JIRA 4.4#649-r158309.