[Issue 10172] New: template instantiation should support enclosed type/scope deduction
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 26 02:19:41 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10172
Summary: template instantiation should support enclosed
type/scope deduction
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-05-26 02:19:39 PDT ---
module test;
struct Foo {}
struct Bar1(T : test.Foo) {} // works
struct Bar2(T : test.S, S) {} // doesn't work
struct Bar3(T : test.S, alias S) {} // doesn't work
void main()
{
Bar1!Foo b1; // works
Bar2!Foo b2; // doesn't work
Bar3!Foo b3; // doesn't work
}
--
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