fn and letfn don't support hinting the function's return type

Description

You can add type hints to the argument vector(s) of `defn` to declare the return type of a function like so (with warn-on-reflection being true):

But sadly, the same doesn't work with `fn` and `letfn`:

I don't see why this feature is available to `defn` but not to `fn` and `letfn`. I even consider it a kind of defect, because anything else including re/ost are also supported by the latter two, so the support for hinting the return type should be there simply because of analogy.

Environment

None

Activity

Show:

Details

Assignee

Reporter

Labels

Priority

Affects versions

Created July 17, 2013 at 1:04 PM
Updated January 18, 2016 at 9:48 PM