May 26, 2013 [Issue 10172] New: template instantiation should support enclosed type/scope deduction | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: k.hara.pg@gmail.com --- Comment #0 from Kenji Hara <k.hara.pg@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: ------- |
Copyright © 1999-2021 by the D Language Foundation