Ran into something odd. Not sure if it's a bug.

In the repl, if I try `(def x ^{:a 1} 42)`, I get an exception (right,
since I can't assign metadata to the value 42).

But then after that, if I try something else (say, typing "hi" into
the repl), I get a 2nd exception message. Here's an example:

~~~
user=> (def x ^{:a 1} 42)
#<IllegalArgumentException java.lang.IllegalArgumentException:
Metadata can only be applied to IMetas>

#<RuntimeException java.lang.RuntimeException: Unmatched delimiter: )>

user=> "hi"
IllegalArgumentException Metadata can only be applied to IMetas
clojure.lang.LispReader$MetaReader.invoke (LispReader.java:740)
RuntimeException Unmatched delimiter: )
clojure.lang.Util.runtimeException (Util.java:170)
"hi"
user=> "hi"
"hi"
user=>
~~~

This is using lein 2 preview 8, Clojure 1.4, with OpenJDK 1.7.

---John

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to