We're updating the issue view to help you get more done. 

Improved handling of type hinted fn in Clojure style

Description

If someone writes (defn foo ^String [x] (js/bar x)) it would be useful to improve the outcome in this situation.

Potentially warn about the misplaced hint and perhaps potentially warn about upper-cased versions of hints.

Conversely, I think we have places where ClojureScript honors Clojure-specific type hints like Integer / Long, in the name of compatibility in the face of compiling cljc files.

Also, we could consider accepting type hints after the function name symbol.

(Not attempting to specify a solution, but just that it could be improved either via warning or automatically patching up.)

Environment

None

Status

Assignee

Unassigned

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major