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

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: