Skip to content

Instantly share code, notes, and snippets.

@frenchy64
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frenchy64/9118729 to your computer and use it in GitHub Desktop.
Save frenchy64/9118729 to your computer and use it in GitHub Desktop.
ctyp-108 min
; CTYP-108
(tc-e
(let [{:keys [a] :as props}
(ann-form {} '{})]
(when-not (and a)
(print-env "")
props)))
{:env {a__#0 (U nil false), props__#0 (HMap :mandatory {}), map__63343__#1 (HMap :mandatory {}), map__63343__#0 (HMap :mandatory {})},
:props ((when (is (U nil false) props__#0)
(is (U nil false) map__63343__#1))
(when (! (U nil false) props__#0)
(! (U nil false) map__63343__#1))
(| (is (U nil false) map__63343__#1 [(Key :a)])
(is (HMap :absent-keys #{:a}) map__63343__#1))
(when (is (U nil false) map__63343__#1)
(is (U nil false) map__63343__#0))
(when (! (U nil false) map__63343__#1)
(! (U nil false) map__63343__#0))
(is (U nil false) a__#0))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment