New tests

svn: r15856
This commit is contained in:
Sam Tobin-Hochstadt 2009-09-01 22:22:37 +00:00
parent acce62b181
commit 95cb438a9c
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#lang typed-scheme
(define-struct: Environment
((parent : (Option Environment))
(bindings : (HashTable Symbol Integer)))
#:mutable)
(: make-empty-env (case-lambda [-> Environment]
[Environment -> Environment]))
(define make-empty-env
(case-lambda: [() (make-Environment #f (make-hasheq))]
[((parent : Environment)) (make-Environment parent
(make-hasheq))]))

View File

@ -0,0 +1,7 @@
#lang typed-scheme
(: id (All (a) (a -> a)))
(define (id x) x)
(: f (String -> String))
(define f #{id @ String})