original commit: bde59620e873067076eba2079a644301f8ad65d8
This commit is contained in:
Matthew Flatt 1999-02-02 21:03:25 +00:00
parent b18a733a2b
commit 3017661e59

View File

@ -454,10 +454,10 @@
(define define-values 10) (define define-values 10)
define-values)))) define-values))))
; Escpecially for zodiac: ; Especially for zodiac:
(test '(b c 10 b a (c a b) (c b a) (c . c) (a) #t (test '(b c 10 b a (c a b) (c b a) (c . c) (a) #t
(nested-b a b c)) (nested-b a b c) (a 2 b) (10 b c) (cl-unit-a 12 c))
'invoke-w/shadowed-alot 'invoke-w/shadowed-a-lot
(let ([a 'bad-a] (let ([a 'bad-a]
[b 'bad-b] [b 'bad-b]
[c 'bad-c] [c 'bad-c]
@ -506,7 +506,43 @@
(export) (export)
(define b 'nested-b) (define b 'nested-b)
(list b w a c)) (list b w a c))
a b)))))) a b)
(invoke-open-unit
(compound-unit
(import a)
(link [u ((unit (import c) (export (xa a) (b xb))
(define xa 1)
(define b 2)
(list a b c))
a)])
(export))
#f
b)
(send
(make-object
(class object% ()
(public
[a 10]
[tester
(lambda () (list a b c))])
(sequence (super-init))))
tester)
(send
(make-object
(class object% ()
(public
[a 10]
[b 12]
[tester
(lambda ()
(invoke-unit
(unit
(import)
(export)
(define a 'cl-unit-a)
(list a b c))))])
(sequence (super-init))))
tester))))))
; Not ok if defining an imported name, but error should be about ; Not ok if defining an imported name, but error should be about
; redefining an imported name. (This behavior is not actually tested.) ; redefining an imported name. (This behavior is not actually tested.)