fix trait bug found by Ryan

svn: r6653
This commit is contained in:
Matthew Flatt 2007-06-13 22:47:17 +00:00
parent 88683ccc37
commit 2385d8bd93
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,7 @@
generate-class-expand-context))
(provide (rename :trait trait)
trait?
trait->mixin
trait-sum
trait-exclude trait-exclude-field
@ -65,7 +66,7 @@
(augride)
(overment)
(inherit) (inherit/super) (inherit/inner)
(inherit-fields)))))]
(inherit-field)))))]
[(fields)
(extract-fields expanded-clauses)])
;; Every declaration implies direct use for other declarations:

View File

@ -31,6 +31,9 @@
(trait (field [x 'x]))
(trait (field [x 'y]))))
(test #t trait? (trait
(inherit-field f)))
;; ----------------------------------------
;; internal and external names