[Issue 9393] New: Partial template specialization and template lambda does not work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 25 00:02:27 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9393
Summary: Partial template specialization and template lambda
does not work
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
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-01-25 00:02:19 PST ---
This code should work.
template ifThrown1(E) {
void ifThrown1(T)(scope T delegate(E) errHandler) {}
}
void ifThrown2(E, T)(scope T delegate(E) errHandler) {}
void main() {
ifThrown1!Exception(e => 10);
ifThrown2!Exception(e => 10);
}
--
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