Allow functions with rest args in with-handlers.
This commit is contained in:
parent
152cf764a0
commit
d713a08cb5
|
@ -65,6 +65,8 @@
|
||||||
(match t
|
(match t
|
||||||
[(Function: (list _ ... (arr: (list arg1) _ _ #f (list (Keyword: _ _ #f) ...)) _ ...))
|
[(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)]
|
||||||
|
[(Function: (list _ ... (arr: '() _ (? values rest) #f (list (Keyword: _ _ #f) ...)) _ ...))
|
||||||
|
(tc/funapp #'here #'(here) (ret t) (list (ret rest)) #f)]
|
||||||
[(? needs-resolving? t)
|
[(? needs-resolving? t)
|
||||||
(loop (resolve t))]
|
(loop (resolve t))]
|
||||||
[(or (Poly: ns _) (PolyDots: (list ns ... _) _))
|
[(or (Poly: ns _) (PolyDots: (list ns ... _) _))
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#lang typed/racket/base
|
||||||
|
|
||||||
|
(define (run-ground-vm)
|
||||||
|
(with-handlers ([exn:break? void])
|
||||||
|
(void)))
|
Loading…
Reference in New Issue
Block a user