Skip to content

Commit

Permalink
Fixing contract gen when arg is a map destructuring form
Browse files Browse the repository at this point in the history
  • Loading branch information
fogus committed Mar 4, 2013
1 parent 3e74e67 commit 18c2ec8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@
(map (fn [arg] (map (fn [arg]
(if-let [hoc (get hocs arg)] (if-let [hoc (get hocs arg)]
(list `partial (list* `fn (build-contract-body (:desc hoc))) arg) (list `partial (list* `fn (build-contract-body (:desc hoc))) arg)
arg)) (if (map? arg)
(:as arg)
arg)))
(->> args (remove vargs?)))) (->> args (remove vargs?))))
{::vargs has-vargs}))) {::vargs has-vargs})))


Expand Down

0 comments on commit 18c2ec8

Please sign in to comment.