[Issue 7717] Regression(2.059): typeof(this) incorrect in mixin template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 16 01:36:19 PDT 2012


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-03-16 01:36:31 PDT ---
It's not clear that there's a bug here. typeof(this).init correctly shouldn't
compile inside a mixin, because the mixin might add an extra field -- so then
init would change.

.init is defined only when all possible members of the aggregate have been
declared.

Can you come up with a valid example?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list