It failed in whichever importer named the module before the spec's, pointing at the module, where a hidden type is refused in the module already: so is this, the remedy the same.
10 lines
307 B
Scheme
10 lines
307 B
Scheme
;;; Imports shown without pub, so its importers cannot see the spec
|
|
;;; this realizes: refused here, rather than in whichever importer
|
|
;;; names money before shown
|
|
(import shown)
|
|
|
|
(pub record money ((cents int)))
|
|
|
|
(pub realize (shown money)
|
|
(fn show ((self (* const money))) int (return (. self cents))))
|