http://d.puremagic.com/issues/show_bug.cgi?id=7047
Don <clugd...@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugd...@yahoo.com.au Resolution| |INVALID Severity|regression |normal --- Comment #1 from Don <clugd...@yahoo.com.au> 2011-12-09 01:53:08 PST --- This isn't a regression. It gave exactly the same error back in DMD 1.000. In fact, it's not even a bug: in D1, 'this' for a struct is a pointer to that struct. As you can see with this code: struct Test1 { static assert(is(typeof(this) == Test1)); // FAILS !!! } In D2, the 'this' pointer is the struct itself. If you make this change: - alias This* pThis; + alias This pThis; your code will compile. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------