E1109: declaration is not exported by its facade
Other modules see a declaration only when it leaves its module.
Other modules see a declaration only when it leaves its module. Two things
must hold (ADR-0047). The declaration is marked open, and the facade of
its module opens the file that holds it with open <file>;. Every facade on
the way up to the importing unit must do the same. A name that is reached
without both steps is private, and the error points at the use. The help part
of the message tells which step is missing:
- the declaration is not marked
open; - the declaration is
open, but the facade does not open its file; - the facade opens the file only with
open unit <file>;, which keeps the names inside the unit (ADR-0111).
A declaration written in the facade file itself, or in a single-file module,
needs only the open mark: the facade is the file that holds it, so no
open <file>; is required. The help never suggests a step that is already
done.
The same error is reported when a public signature names a private type.
Example
Fix
Mark the declaration open, and let the facade open its file with a plain
open <file>;.
Run actus explain E1109 in your terminal to read this entry offline. Browse Modules & rules or all error codes.