[Issue 2830] private attribute doesn't work for structs/unions/classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 11 02:11:46 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2830





------- Comment #4 from gide at nwawudu.com  2009-04-11 04:11 -------

> tmp.d
> -----
> import tmp1;
> 
> void main() {
>     TestStruct s;
>     TestUnion u;
>     auto c = new TestClass;
>     s.var = var; // Fails
>     s.var = a.var; // OK

// Typo.
      s.var = tmp1.var; //Compiles but shouldn't bug 314

> }

Looks like a dup of bug 1440, my google-fu is weak.


-- 



More information about the Digitalmars-d-bugs mailing list