Provides better error message for PR 11889.

original commit: a9655c04dd8cd150f283a5755a89b47dcd505d62
This commit is contained in:
Eric Dobson 2011-07-02 17:02:17 -04:00 committed by Vincent St-Amour
parent f357d4c0ce
commit ad93c3fbfc

View File

@ -563,6 +563,7 @@
(match (map single-value (syntax->list #'pos-args))
[(list (tc-result1: argtys-t) ...)
(let* ([subst (infer vars null argtys-t dom rng (and expected (tc-results->values expected)))])
(unless subst (fail))
(tc-keywords form (list (subst-all subst ar))
(type->list (tc-expr/t #'kws)) #'kw-arg-list #'pos-args expected))])]
[(tc-result1: (Function: arities))