Use vector-immutableof' and box-immutable/c' to handle boxes and vectors.

svn: r15199

original commit: cfd65e7fa2ec01f345c6092c308c6894557dc7b6
This commit is contained in:
Sam Tobin-Hochstadt 2009-06-17 20:49:13 +00:00
parent f2d1a88bf5
commit c8cf1953e5
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,11 @@
#lang scheme/load
(module m typed-scheme
(provide f)
(: f Sexp)
(define f 5))
(require 'm)
f

View File

@ -93,7 +93,9 @@
[(list e) e]
[l #`(case-> #,@l)]))]
[(Vector: t)
#`(vectorof #,(t->c t))]
#`(vector-immutableof #,(t->c t))]
[(Box: t)
#`(box-immutable/c #,(t->c t))]
[(Pair: t1 t2)
#`(cons/c #,(t->c t1) #,(t->c t2))]
[(Opaque: p? cert)