ClojureScript

single segment namespace reify issue

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

(ns main-ns)
 
(defprotocol BadReify
  (do-stuff [this]))
 
(defn wrap-stuff [x]
  (reify
    BadReify
    (do-stuff [this]
      x)))

emits a spurious warning, and the anonymous deftype is cached on the wrong thing.

Activity

David Nolen made changes -
Field Original Value New Value
Description {code}
(ns main-ns)
 
(defprotocol BadReify
  (do-stuff [this]))
 
(defn wrap-stuff [x]
  (reify
    BadReify
    (do-stuff [this]
      x)))
{code}

emits a spurious warning, and the anonymouse deftype is cached on the wrong thing.
{code}
(ns main-ns)
 
(defprotocol BadReify
  (do-stuff [this]))
 
(defn wrap-stuff [x]
  (reify
    BadReify
    (do-stuff [this]
      x)))
{code}

emits a spurious warning, and the anonymous deftype is cached on the wrong thing.
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 (0)

Dates

  • Created:
    Updated:
    Resolved: