test for field value names in class

svn: r5881
This commit is contained in:
Matthew Flatt 2007-04-07 23:36:45 +00:00
parent a47e48fc20
commit 9bf5fe3872

View File

@ -1343,6 +1343,12 @@
(test-call overridden-tail-method)
(test-call supercall-tail-method))
;; ----------------------------------------
;; Private field names
(let ([c% (class object% (define foo (lambda () 10)) (define/public (get) foo) (super-new))])
(test 'foo object-name (send (new c%) get)))
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(report-errs)