Fix augment type printing

original commit: e80c4d72fb3ef7ee86915d17d5c6d5e1837bc800
This commit is contained in:
Asumu Takikawa 2013-08-21 17:25:14 -04:00
parent c07f80cc07
commit 97c6350e87

View File

@ -356,8 +356,7 @@
(match-define (list name type) name+type)
`(,name ,(type->sexp type))))
(define augments*
(cond [(null? augments) '()]
[object? augments]
(cond [(or object? (null? augments)) '()]
[else (list (cons 'augment augments))]))
`(,(if object? 'Object 'Class)
,@row-var* ,@inits* ,@fields* ,@methods* ,@augments*))