Better error message for extra ->.

svn: r12034
This commit is contained in:
Sam Tobin-Hochstadt 2008-10-14 15:58:34 +00:00
parent b3701d6f76
commit 453deb8a5d

View File

@ -211,8 +211,11 @@
(add-type-name-reference #'id)
;(printf "found a type name ~a~n" #'id)
(make-Name #'id)]
[(eq? '-> (syntax-e #'id))
(tc-error/delayed "Incorrect use of -> type constructor")
Univ]
[else
(tc-error/delayed "unbound type name ~a" (syntax-e #'id))
(tc-error/delayed "Unbound type name ~a" (syntax-e #'id))
Univ])]
[(All . rest) (eq? (syntax-e #'All) 'All) (tc-error "All: bad syntax")]