digitalmars.D.bugs - [Issue 6044] New: Cannot instantiate nested struct template from an alias of struct
- d-bugmail puremagic.com (36/36) May 22 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6044
http://d.puremagic.com/issues/show_bug.cgi?id=6044 Summary: Cannot instantiate nested struct template from an alias of struct Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: kennytm gmail.com Test case: --------------------------------------- struct Maybe { struct Impl(T) { } } void main() { alias Maybe A; Maybe.Impl!int v; // ok A.Impl!int u; // error } --------------------------------------- x.d(7): Error: alias x.main.A template identifier Impl is not a member of alias A x.d(9): Error: no property 'Impl!(int)' for type 'Maybe' x.d(9): Error: A.Impl!(int) is used as a type --------------------------------------- The error should not appear. Also, the error does not happen in D1. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 22 2011