Open na4zagin3 opened 3 years ago
According to @gfngfn, this is expected since all packages are incrementally compiled with the shared global namespace.
He has a plan to change the name resolution rule so that every external identifiers are explicitly introduced by either @require
or @import
.
Modules defined in another package that is not imported are visible while they should not be.
Reproducible example
This example consist of three satyg packages and one saty file.
Files
File
set.satyg
:File
test1.satyg
:File
test2.satyg
:File
test.satyg
:Execution result
Expected behavior
It shouldn't compile.
Environment
SATySFi 4e8ea2147f66b8c26a494067b3011e480be6526e (0.0.5+dev2020.09.05 at Satyrographos Repo)