Fix creation of a reversed List type from ListDots substitution.
This commit is contained in:
parent
debd6026f3
commit
a9f6ea69bf
|
@ -640,6 +640,9 @@
|
||||||
(apply (plambda: (b ...) ([x : Number] . [y : Number ... b]) x)
|
(apply (plambda: (b ...) ([x : Number] . [y : Number ... b]) x)
|
||||||
1 w))
|
1 w))
|
||||||
(-polydots (a) ((list -String) (N a) . ->... . N))]
|
(-polydots (a) ((list -String) (N a) . ->... . N))]
|
||||||
|
[tc-e/t (let ([f (plambda: (a ...) [w : a ... a] w)])
|
||||||
|
(f 1 "hello" #\c))
|
||||||
|
(-pair -PositiveFixnum (-pair -String (-pair -Char (-val null))))]
|
||||||
;; instantiating non-dotted terms
|
;; instantiating non-dotted terms
|
||||||
[tc-e/t (inst (plambda: (a) ([x : a]) x) Integer)
|
[tc-e/t (inst (plambda: (a) ([x : a]) x) Integer)
|
||||||
(make-Function (list (make-arr* (list -Integer) -Integer
|
(make-Function (list (make-arr* (list -Integer) -Integer
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
;; We need to recur first, just to expand out any dotted usages of this.
|
;; We need to recur first, just to expand out any dotted usages of this.
|
||||||
(let ([expanded (sb dty)])
|
(let ([expanded (sb dty)])
|
||||||
(for/fold ([t (make-Value null)])
|
(for/fold ([t (make-Value null)])
|
||||||
([img images])
|
([img (reverse images)])
|
||||||
(make-Pair (substitute img name expanded) t)))
|
(make-Pair (substitute img name expanded) t)))
|
||||||
(make-ListDots (sb dty) dbound))]
|
(make-ListDots (sb dty) dbound))]
|
||||||
[#:ValuesDots types dty dbound
|
[#:ValuesDots types dty dbound
|
||||||
|
|
Loading…
Reference in New Issue
Block a user