Skip to content

Conversation

ryfow
Copy link
Contributor

@ryfow ryfow commented Feb 6, 2018

The type hint for for function returns should go between the var name
and arguments. In the case of num-recorded, if you tried to do
arithmetic on the returned value, you'd get an Exception like:

java.lang.IllegalArgumentException: Unable to resolve classname: clojure.core$long@6df773ef

See https://dev.clojure.org/jira/browse/CLJ-1753 and
https://dev.clojure.org/jira/browse/CLJ-1674 for details.

The type hint for for function returns should go between the var name and arguments. In the case of num-recorded, if you tried to do arithmetic on the returned value, you'd get an Exception like: `java.lang.IllegalArgumentException: Unable to resolve classname: clojure.core$long@6df773ef` See https://dev.clojure.org/jira/browse/CLJ-1753 and https://dev.clojure.org/jira/browse/CLJ-1674 for details.
@michaelklishin michaelklishin merged commit 94f845b into clj-commons:master Feb 12, 2018
@michaelklishin
Copy link
Collaborator

Thank you! Sounds like it should be backported to 2.x (master is already 3.0). I'll take care of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants