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

svn: r15199
This commit is contained in:
Sam Tobin-Hochstadt 2009-06-17 20:49:13 +00:00
parent 290d3008fb
commit cfd65e7fa2
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)