From d22532db163bdb06007c248628c4002280817579 Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Sat, 10 Nov 2012 11:11:32 -0500 Subject: [PATCH] Fix Custodian type --- collects/tests/typed-racket/succeed/custodian.rkt | 6 ++++++ collects/typed-racket/types/abbrev.rkt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 collects/tests/typed-racket/succeed/custodian.rkt diff --git a/collects/tests/typed-racket/succeed/custodian.rkt b/collects/tests/typed-racket/succeed/custodian.rkt new file mode 100644 index 0000000000..8cf5031fa2 --- /dev/null +++ b/collects/tests/typed-racket/succeed/custodian.rkt @@ -0,0 +1,6 @@ +#lang typed/racket + +;; Make sure the Custodian type is bound + +(: cust Custodian) +(define cust (current-custodian)) \ No newline at end of file diff --git a/collects/typed-racket/types/abbrev.rkt b/collects/typed-racket/types/abbrev.rkt index df0a3a2bdd..30e8258ac2 100644 --- a/collects/typed-racket/types/abbrev.rkt +++ b/collects/typed-racket/types/abbrev.rkt @@ -214,7 +214,7 @@ (define -Special-Comment (make-Base 'Special-Comment #'special-comment? special-comment? #'-Special-Comment)) -(define -Custodian (make-Base 'Custodian #'custodian? custodian? #'Custodian)) +(define -Custodian (make-Base 'Custodian #'custodian? custodian? #'-Custodian)) (define -Parameterization (make-Base 'Parameterization #'parameterization? parameterization? #'-Parameterization))