Loops returning primtives are boxed even in return position

Description

Reported here: https://groups.google.com/d/topic/clojure/atoFzbyuyos/discussion

Last lines of the Java bytecode of `exp-int`:

The compiler doesn't currently infer the primitive type as soon as there is a recur:

Patch attached.

Environment

None

Assignee

Christophe Grand

Reporter

Christophe Grand

Labels

None

Approval

Ok

Patch

Code

Fix versions

Affects versions

Priority

Major
Configure