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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 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: -------