Make it so that handlers lookup arrities other than the first.

Fixes current build breakage.
This commit is contained in:
Eric Dobson 2014-04-03 09:29:26 -07:00
parent 1cda4e4f83
commit 6b0676ef2b

View File

@ -63,7 +63,7 @@
(define (get-result-ty t) (define (get-result-ty t)
(let loop ((t t)) (let loop ((t t))
(match t (match t
[(Function: (cons (arr: (cons arg1 args) _ _ _ _) _)) [(Function: (list _ ... (arr: (list arg1) _ _ #f (list (Keyword: _ _ #f) ...)) _ ...))
(tc/funapp #'here #'(here) (ret t) (list (ret arg1)) #f)] (tc/funapp #'here #'(here) (ret t) (list (ret arg1)) #f)]
[(? needs-resolving? t) [(? needs-resolving? t)
(loop (resolve t))] (loop (resolve t))]