Perhaps the same: http://dev.clojure.org/jira/browse/CLJS-1105 
<http://dev.clojure.org/jira/browse/CLJS-1105>

Fixed with a recent commit:

https://github.com/clojure/clojurescript/commit/4bcc95175e4282d43ed74bf0abd670550fc40140
 
<https://github.com/clojure/clojurescript/commit/4bcc95175e4282d43ed74bf0abd670550fc40140>



> On Mar 12, 2015, at 8:18 PM, Karl Guertin <[email protected]> wrote:
> 
> If you have two identically named keywords, one being dash separated and the 
> other being underscore separated, both will come out as underscore separated 
> after getting run through advanced mode compilation and only in advanced 
> mode. The I'm posting this here because I'm unsure if it's a bug in 
> Clojurescript or a bug in Closure Compiler. I'm happy to file it in JIRA 
> instead.
> 
> Clojurescript standalone jar r3058
> 
> build.cljs:
> 
>     (require 'cljs.closure)
>     
>     (cljs.closure/build "src"
>         {:main 'kw-underscore.core
>          :output-to "out/main.js"
>          :optimizations :advanced
>          :target :nodejs})
> 
> src/kw_underscore/core.cljs:
> 
>     (ns kw-underscore.core)
> 
>     (enable-console-print!)
> 
>     (defn -main [& args]
>       (println :foo-bar :foo_bar))
> 
>     (set! *main-cli-fn* -main)
> 
> command:
> 
>     $ java -cp cljs.jar:src clojure.main build.clj
> 
> output:
> 
>     $ node out/main.js
>     :foo_bar :foo_bar
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/clojurescript 
> <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