<< Back to previous view

[CTYP-53] HMap update simplifies to Nothing too eagerly Created: 11/Sep/13  Updated: 25/Sep/13  Resolved: 15/Sep/13

Status: Closed
Project: core.typed
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Ambrose Bonnaire-Sergeant Assignee: Ambrose Bonnaire-Sergeant
Resolution: Completed Votes: 0
Labels: None


The following code should type check to [(HMap) -> (HMap :mandatory {:foo (Vec Any)})].

(fn> [m :- (HMap)]
(assert (vector? (:foo m)))
;=> [(HMap) -> Nothing]

The source of this bug is the HMap being updated incorrectly:

(update (parse-type '(HMap))
(parse-filter '(is (clojure.core.typed/Vec Any) m [(Key :foo)]))))
;=> Nothing

Comment by Ambrose Bonnaire-Sergeant [ 15/Sep/13 8:44 AM ]

Fixed: https://github.com/clojure/core.typed/commit/ad9c1769689809278fef3bbd50bf2efa4864be12

Generated at Sun Jan 21 21:05:56 CST 2018 using JIRA 4.4#649-r158309.