Skip to content

Instantly share code, notes, and snippets.

@bhb
Created February 13, 2018 20:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhb/5b55167e9f99e0aafac2d5e720a55d3d to your computer and use it in GitHub Desktop.
Save bhb/5b55167e9f99e0aafac2d5e720a55d3d to your computer and use it in GitHub Desktop.
Expound error when using fully-qualified symbol in let binding
(require '[clojure.core.specs.alpha])
(require '[clojure.spec.alpha :as s])
(require '[clojure.spec.test.alpha :as stest])
(require '[expound.alpha :as expound])
(set! s/*explain-out* (expound/custom-printer {:print-specs? false})) ; The "relevant specs" are very long, so let's omit them
(stest/instrument)
(let [foo/bar 42])
;; CompilerException clojure.lang.ExceptionInfo: Call to clojure.core/let did not conform to spec:
;; -- Spec failed --------------------
;;
;; ([foo/bar ...])
;; ^^^^^^^
;;
;; should satisfy
;;
;; simple-symbol?
;;
;; or
;;
;; vector?
;;
;; or
;;
;; coll?
;;
;; or
;;
;; map?
;;
;;
;;
;;-------------------------
;;Detected 1 error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment