typed-racket/typed-racket-test/succeed/zero-arg-poly.rkt
Sam Tobin-Hochstadt 9a2b74dc33 Generate trivial constraints for missing type variables.
If the type variable isn't mentioned anywhere, then just
pick `Any` as its substitution.

Fixes #152.
2015-06-23 16:08:23 -04:00

9 lines
163 B
Racket

#lang typed/racket/base
(: f : (All (A) (case-> [-> Zero]
[A -> A])))
(define f
(case-lambda
[() 0]
[(a) a]))
(define (f0)
(f))