Just seems like an bug in the type inferencing around numbers. Open a
ticket in JIRA, thanks.

David

On Tue, Nov 11, 2014 at 10:33 AM, Stefano Pugnetti
<[email protected]> wrote:
> Hi to everybody!
>
> At
>
> https://github.com/stepugnetti/cljs-issue
>
> you can find some code producing a strange behavior of the builder. Running 
> `lein cljsbuild once bare' compiles the following code:
>
> (defn issue []
>   (let [rs (read-string "1")]
>     (< rs 1)))
>
> and results in the following warning message:
>
> WARNING: cljs.core/<, all arguments must be numbers, got [#{nil boolean any 
> number cljs.core/Symbol clj-nil} number] instead. at line 6 
> src/bare/cljs_issue/bare.cljs
>
> With `lein cljsbuild once wrapped' the code compiled is just slightly 
> different (the result of read-string is wrapped in a call to the identity 
> function):
>
> (defn issue []
>   (let [rs (identity (read-string "1"))]
>     (< rs 1)))
>
> and the warning message disappears.
>
> What's up?
>
> Stefano
>
> --
> Note that posts from new members are moderated - please be patient with your 
> first post.
> ---
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to