https://d.puremagic.com/issues/show_bug.cgi?id=12263
Summary: Specialized template parameter incorrectly fail to
match to the same name template.
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]> 2014-02-25 23:10:22 PST ---
Test case:
template A(alias a) { int x; }
template B(alias a) { int x; }
template fqnSym(alias T : B!A, alias B, A...)
{
enum fqnSym = "match";
}
// A!Object matches to B!A
pragma(msg, fqnSym!(A!(Object)));
// But, B!Object does not match to B!A
pragma(msg, fqnSym!(B!(Object)));
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------