New tests
svn: r15856 original commit: 95cb438a9c7dca02d4a55c949f27601af07bbd59
This commit is contained in:
parent
dec8803f27
commit
d4b5a51fce
13
collects/tests/typed-scheme/succeed/infer-funargs.ss
Normal file
13
collects/tests/typed-scheme/succeed/infer-funargs.ss
Normal 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))]))
|
7
collects/tests/typed-scheme/succeed/inst-expected.ss
Normal file
7
collects/tests/typed-scheme/succeed/inst-expected.ss
Normal file
|
@ -0,0 +1,7 @@
|
|||
#lang typed-scheme
|
||||
|
||||
(: id (All (a) (a -> a)))
|
||||
(define (id x) x)
|
||||
|
||||
(: f (String -> String))
|
||||
(define f #{id @ String})
|
Loading…
Reference in New Issue
Block a user