You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've marked this as a regression because the docs [1] say:
"protected module members are illegal."
However, the compiler not complain about protected module members:
```module a;// This compilesprotected int wrong;``````module b;import std.stdio;import a;int main() { writeln(wrong); }```
Instead, it gives the deprecation message about visibility:
"Deprecation: a.wrong is not visible from module b"
With -d, it compiles and runs.
[1]https://dlang.org/spec/attribute.html#visibility_attributes
The text was updated successfully, but these errors were encountered:
If an issue is marked as an regression it has to state which is the last compiler version that implemented the feature correctly. Downgrading to normal
Mike Parker (@mdparker) reported this on 2018-10-29T10:14:51Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=19340
CC List
Description
The text was updated successfully, but these errors were encountered: