Fix test to expecte effects.
Remove useless annotation.
This commit is contained in:
parent
1af866586e
commit
36408a32d5
|
@ -80,7 +80,7 @@
|
|||
|
||||
;; 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)
|
||||
(make (heap:insert* (map #{#{cons @ number a} :: (number a -> (cons number a))} ps xs) (heap pq))))
|
||||
(make (heap:insert* (map #{cons @ number a} ps xs) (heap pq))))
|
||||
|
||||
(pdefine: (a) (delete-min [pq : (priority-queue a)]) : (priority-queue a)
|
||||
(let ([h (heap pq)])
|
||||
|
|
|
@ -562,10 +562,9 @@
|
|||
[tc-err (plambda: (a ...) ([z : String] . [w : Number ... a])
|
||||
(apply (plambda: (b ...) ([x : Number] . [y : Number ... b]) x)
|
||||
1 w))]
|
||||
|
||||
;; instantiating non-dotted terms
|
||||
[tc-e (inst (plambda: (a) ([x : a]) x) Integer)
|
||||
(-Integer . -> . -Integer)]
|
||||
(-Integer . -> . -Integer : (list (make-Latent-Var-True-Effect)) (list (make-Latent-Var-False-Effect)))]
|
||||
[tc-e (inst (plambda: (a) [x : a *] (apply list x)) Integer)
|
||||
((list) -Integer . ->* . (-lst -Integer))]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user