digitalmars.D.bugs - [Issue 12291] New: Pick up "this" from alias parameters to nested templates
- d-bugmail puremagic.com (35/35) Mar 03 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12291
https://d.puremagic.com/issues/show_bug.cgi?id=12291 Summary: Pick up "this" from alias parameters to nested templates Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: thecybershadow gmail.com 14:31:40 EET --- ////// test.d ///// void fun(alias a)() { a = 42; } struct S { int x; } void main() { S s; fun!(s.x)(); } /////////////////// Currently, this fails with: test.d(14): Error: need 'this' for 'fun' of type 'pure nothrow safe void()' However, we provide the "this" in the "s.x" expression. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 03 2014