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