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

Bad type hints on a defn cause the compiler to throw a NPE

Description

After CLJ-1232 was committed to master, it is possible for the Clojure compiler to throw a NPE if a defn is type hinted with a invalid type. This surfaces in CLJS where the defn macro is re-used by the ClojureScript compiler, but I think it raises the question: "Should a bad type hint result in a compiler exception?"

The offending line can be found here on GitHub: https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L247

Environment

None

Status

Assignee

Unassigned

Reporter

Timothy Baldridge

Approval

Triaged

Patch

None

Affects versions

Release 1.8

Priority

Major