Fix parsing of All on RHS of ->
This commit is contained in:
parent
fac0e197cf
commit
f320d36e9c
|
@ -106,6 +106,8 @@
|
||||||
(-polydots (a) ((list) [a a] . ->... . N))]
|
(-polydots (a) ((list) [a a] . ->... . N))]
|
||||||
|
|
||||||
[(Any -> Boolean : Number) (make-pred-ty -Number)]
|
[(Any -> Boolean : Number) (make-pred-ty -Number)]
|
||||||
|
[(Integer -> (All (X) (X -> X)))
|
||||||
|
(t:-> -Integer (-poly (x) (t:-> x x)))]
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
|
@ -365,8 +365,6 @@
|
||||||
[((~and kw values) tys ...)
|
[((~and kw values) tys ...)
|
||||||
(add-type-name-reference #'kw)
|
(add-type-name-reference #'kw)
|
||||||
(-values (map parse-type (syntax->list #'(tys ...))))]
|
(-values (map parse-type (syntax->list #'(tys ...))))]
|
||||||
[(t:All . rest)
|
|
||||||
(parse-all-type stx parse-values-type)]
|
|
||||||
[t
|
[t
|
||||||
(-values (list (parse-type #'t)))])))
|
(-values (list (parse-type #'t)))])))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user