Remove #:transparent to work around place message limitations.

This commit is contained in:
Sam Tobin-Hochstadt 2012-08-22 12:34:34 -04:00
parent e207f5c67d
commit b7f9c77069
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#lang typed/racket
(define-struct: (A) Box ([value : A]) #:transparent)
(define-struct: (A) (Child-Box Box) () #:transparent)
(define-struct: (A) Box ([value : A]))
(define-struct: (A) (Child-Box Box) ())
(ann (Box-value (Child-Box 'sym)) Nothing)

View File

@ -2,6 +2,6 @@
("Could not instantiate parent struct type")
#lang typed/racket
(define-struct: (A) Box ([value : A]) #:transparent)
(define-struct: (Child-Box Box) () #:transparent)
(define-struct: (A) Box ([value : A]))
(define-struct: (Child-Box Box) ())

View File

@ -3,7 +3,7 @@
#lang typed/racket
(define-struct: (A B) Box ([value : A]
[other : B]) #:transparent)
(define-struct: (C) (Child-Box Box) () #:transparent)
[other : B]))
(define-struct: (C) (Child-Box Box) ())