Open radeusgd opened 5 months ago
I suspect it may have something to do with the synthetic re-exports that are generated for the sub-modules. Probably all sub-modules are tried to be re-exported, but then if one of them is private, the PrivateModuleAnalysis
pass fails on this synthetic export.
I imagine this is relatively low priority, as we probably should follow the convention anyway of putting such private modules inside of Internal
submodule, which would not have such aliased Internal.enso
that causes the trouble here.
Still worth noting as the behaviour is rather incorrect.
It is possible and used in Enso to create following structures:
However, I found out that if I add a private module inside of such an 'aliased' parent module, this fails with compiler error.
Repro: testproject1.zip
When such project is ran, it results in:
It should be normally possible to mark modules as private inside of such a structure.
If I remove the
private
mark fromBar.enso
, the problem goes away.