Issue 7236 - Protected class member should be accessible in subclass in another file #1478

wants to merge 1 commit into


None yet

4 participants

ghost commented Jan 13, 2013

I'm somewhat on the edge of this one, whether it should be allowed or not. I'd love to hear some input.


Yes, protected is not related to file. I approve. @WalterBright?


@andralex: The behavior tested in NC1 is precisely a case of protected depending on the file structure.

I'd say fix the original issue, but don't allow external access from the same file as in the NC1 tests. I don't have an overly strong opinion on that, though.

ghost commented Jan 14, 2013

Maybe we should delay fixing any of this until we get that DIP on access protection.

@ghost ghost closed this Feb 4, 2013

The bug report is invalid, see my comment in it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment