Fix: scope of #import
type:fixed
When designing #import
i made it so that the imported module is added at the top of the file which can create several issues, including declaring a module at the top of the file that is later shadowed by an imported module -> the module is not shadowed anymore.
The MR creates the imported module at the location of the #import
statement which restores the expected behavior for the user.
Side_effect: The build now adds the imported module as hidden
.
The special handling of imported modules in repl
has been removed as it is no longer necessary.
The repl
now lists declarations in order.
Changelog details:
The scope of #import
directive has been fixed so that the imported module is created in-place instead of at the beginning of the file. (i.e won't be shadowed anymore by a module declared before the import)