Throw an exception on testing invalid type objects
This commit is contained in:
parent
ded50d7a29
commit
634f371144
1 changed files with 2 additions and 1 deletions
|
|
@ -515,7 +515,8 @@
|
|||
[type]
|
||||
(cond
|
||||
(qualified-keyword? type) type
|
||||
(sequential? type) (keyword (first type))))
|
||||
(sequential? type) (keyword (first type))
|
||||
:else (throw (ex-info "Invalid type object" {:type type}))))
|
||||
|
||||
(def primitive?
|
||||
"A set of all primitive types."
|
||||
|
|
|
|||
Loading…
Reference in a new issue