Public Private members?

Flying-Toast email at example.com
Mon Apr 15 17:38:15 UTC 2019


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


More information about the Digitalmars-d mailing list