typed-racket/typed-racket-test/succeed/poly-apply.rkt
Eric Dobson c9db5dded7 Make infer/dotted instantiate the dotted variable to improve inference.
With this we don't need to infer the length of the dotted variable,
in parts of the inference.

Closes #120.
2015-11-10 16:56:14 -05:00

10 lines
184 B
Racket

#lang typed/racket
(: my-apply (All (a ...) ((Any ... a -> Any) a ... a -> Any)))
(define (my-apply f . x) (apply f x))
(: id (All (a) (a -> a)))
(define (id x) x)
(my-apply id 'y)