<< Back to previous view

[CLJS-594] Call sites of function named divide are replaced by JavaScript '/' Created: 21/Sep/13  Updated: 24/Sep/13  Resolved: 24/Sep/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Julien Eluard Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None


 Description   

Function named divide have their call sites replaced by JavaScript '/'.
I would expect either this replacement not to happen or the compilation process to fail when such functions are defined.

Note that the divide function is correctly generated.



 Comments   
Comment by David Nolen [ 24/Sep/13 5:54 PM ]

Yes divide is an inlining macro defined in core. Does the issue persist if you exclude "divide"?

Comment by Julien Eluard [ 24/Sep/13 6:46 PM ]

Yes excluding 'divide' does solve the issue.

Comment by David Nolen [ 24/Sep/13 7:24 PM ]

divide is now declared in core so that you'll get a warning if you accidentally redefine http://github.com/clojure/clojurescript/commit/b81c96a27e6285a0f980304573388363ab2de9c6

Comment by Julien Eluard [ 24/Sep/13 7:58 PM ]

Thanks!

Generated at Wed Apr 23 15:13:19 CDT 2014 using JIRA 4.4#649-r158309.