ClojureScript

Call sites of function named divide are replaced by JavaScript '/'

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • 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.

Activity

Hide
David Nolen added a comment -

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

Show
David Nolen added a comment - Yes divide is an inlining macro defined in core. Does the issue persist if you exclude "divide"?
Hide
Julien Eluard added a comment -

Yes excluding 'divide' does solve the issue.

Show
Julien Eluard added a comment - Yes excluding 'divide' does solve the issue.
Hide
David Nolen added a comment -

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

Show
David Nolen added a comment - divide is now declared in core so that you'll get a warning if you accidentally redefine http://github.com/clojure/clojurescript/commit/b81c96a27e6285a0f980304573388363ab2de9c6
Hide
Julien Eluard added a comment -

Thanks!

Show
Julien Eluard added a comment - Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: