The inference engine doesn't need this annotation anymore.

This commit is contained in:
Sam Tobin-Hochstadt 2010-06-03 17:30:23 -04:00
parent 82e7d281cb
commit e235c837b0

View File

@ -76,7 +76,7 @@
(error "priority queue empty"))))
(pdefine: (a) (insert [x : a] [p : number] [pq : (priority-queue a)]) : (priority-queue a)
(make (heap:insert (#{cons :: (case-lambda (a (list-of a) -> (list-of a)) (number a -> (cons number a)))} p x) (heap pq))))
(make (heap:insert (cons p x) (heap pq))))
;; FIXME -- too many annotations needed on cons
(pdefine: (a) (insert* [xs : (list-of a)] [ps : (list-of number)] [pq : (priority-queue a)]) : (priority-queue a)