mixin: fix error-message construction

Closes #1693
This commit is contained in:
Matthew Flatt 2021-04-28 14:30:31 -06:00
parent 94725ffb4e
commit 3e9a8ccf59
2 changed files with 8 additions and 2 deletions

View File

@ -1999,7 +1999,11 @@
(define/public (n) 2)
(super-new)))
(test 3 'mixin-with-local-member-names (send (new (mix c%)) x)))
(err/rt-test (mixin (object%) () (super-new))
exn:fail:object?
#rx"not an interface")
;; ----------------------------------------
;; Class contracts & generics

View File

@ -4697,7 +4697,9 @@ An example
[(or (as-write-list? val)
(as-value-list? val))
(apply string-append
(for/list ([v (in-list (as-write-list-content val))])
(for/list ([v (in-list (if (as-write-list? val)
(as-write-list-content val)
(as-value-list-content val)))])
(format (if (as-write-list? val)
"\n ~s"
"\n ~e")