Visibility check for modules is broken #6673
Labels
bug
Something isn't working
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
The visibility of modules is currently checked incorrectly.
The following module structure illustrates the problem:
Currently any item declared in
c
is invisible tod
, because the visibility ofb
is private. This is incorrect, sinced
is behind the same visibility "wall" asc
, namely the privacy ofb
.My understanding is that items from
c
should also be visible inb
, but I'm not 100% sure of that. We should check what Rust does here.The text was updated successfully, but these errors were encountered: