Provides better error message for PR 11889.

This commit is contained in:
Eric Dobson 2011-07-02 17:02:17 -04:00 committed by Vincent St-Amour
parent 0b76178138
commit a9655c04dd

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))