:rettag encourages wrong runtime type hints

Description

Currently :rettag works only for expressions like:

1 (defn ^long x [..] ..)

or

1 (defn ^double x [..] ..)

But at runtime those type-hints are resolved to

1 #<clojure.core$long ..>

and

1 #<clojure.core$double ..>

which can cause the compiler to fail, see CLJ-1674 for an example

Patch: clj-1805.patch fixes the bad boolean logic mentioned in the comments.

Environment

None

Status

Assignee

Unassigned

Reporter

Nicola Mometto

Labels

Approval

Ok

Patch

Code

Fix versions

Affects versions

Release 1.8

Priority

Critical
Configure