Add a unit test for ill-typed private methods

This commit is contained in:
Asumu Takikawa 2013-07-01 18:28:06 -04:00
parent eb95264e3f
commit 7ba8dd57cb

View File

@ -443,6 +443,12 @@
(: m (-> Integer))
(define/public (m) (x))))
;; fails, ill-typed private method implementation
(check-err
(class: object% (super-new)
(: x (-> Integer))
(define/private (x) "bad result")))
;; test optional init arg
(check-ok
(: c% (Class (init [x Integer #:optional])))