tokiwa-software / fuzion

The Fuzion Language Implementation
https://fuzion-lang.dev
GNU General Public License v3.0
48 stars 11 forks source link

visbility: only allow `module` visibility when needed #4228

Open maxteufel opened 1 day ago

maxteufel commented 1 day ago

An error could be produced when a feature is marked module but only used in the same file. In this case, visibility private would be sufficient.

We cannot do a similar check for public features because those are intended to possibly only be called from the outside.