Fix parsing of quoted lists in types to produce list types.
svn: r17237
This commit is contained in:
parent
eae4c140fa
commit
be77cee733
|
@ -96,7 +96,7 @@
|
||||||
[#t (-val #t)]
|
[#t (-val #t)]
|
||||||
[#f (-val #f)]
|
[#f (-val #f)]
|
||||||
["foo" (-val "foo")]
|
["foo" (-val "foo")]
|
||||||
['(1 2 3) (-val '(1 2 3))]
|
['(1 2 3) (-Tuple (map -val '(1 2 3)))]
|
||||||
|
|
||||||
[(Listof Number) (make-Listof N)]
|
[(Listof Number) (make-Listof N)]
|
||||||
|
|
||||||
|
|
|
@ -213,6 +213,9 @@
|
||||||
[((~and kw t:U) ts ...)
|
[((~and kw t:U) ts ...)
|
||||||
(add-type-name-reference #'kw)
|
(add-type-name-reference #'kw)
|
||||||
(apply Un (map parse-type (syntax->list #'(ts ...))))]
|
(apply Un (map parse-type (syntax->list #'(ts ...))))]
|
||||||
|
[((~and kw quote) (t1 . t2))
|
||||||
|
(add-type-name-reference #'kw)
|
||||||
|
(-pair (parse-type #'(quote t1)) (parse-type #'(quote t2)))]
|
||||||
[((~and kw quote) t)
|
[((~and kw quote) t)
|
||||||
(add-type-name-reference #'kw)
|
(add-type-name-reference #'kw)
|
||||||
(-val (syntax->datum #'t))]
|
(-val (syntax->datum #'t))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user