Details
-
Type:
Defect
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Approved Backlog
-
Component/s: None
-
Labels:None
-
Approval:Vetted
Description
This should complain about using a fully-qualified name as a parameter:
(defmacro lookup []
`(reify clojure.lang.ILookup
(valAt [_ key])))
Instead it simply ignores that parameter in the method body in favour of clojure.core/key.
technomancy said: Interesting. So it's not appropriate to require auto-gensym here? Why are the rules different for reify methods vs proxy methods?
> (defmacro lookup []
`(proxy [clojure.lang.ILookup] []
(valAt [key] key)))
> (lookup)
Can't use qualified name as parameter: clojure.core/key
[Thrown class java.lang.Exception]