Public Private members?
bauss
jj_1337 at live.dk
Mon Apr 15 17:56:31 UTC 2019
On Monday, 15 April 2019 at 17:38:15 UTC, Flying-Toast wrote:
> I am not sure if this is a bug or if there is some explanation
> for this behavior, but either way it is confusing and I think
> it should cause an Error.
>
> ---
> class A {
> private {
> public int a;//No Error???
> }
>
> private public string s;//Error, expected
> }
> ---
>
> https://run.dlang.io/is/odJDnA
I would argue that it's indeed a bug.
More information about the Digitalmars-d
mailing list