[Issue 12166] Template Argument Pattern Matching Fails for Struct With Multiple Nested Template Arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 19 23:32:33 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12166
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-19 23:32:31 PST ---
(In reply to comment #2)
> Sorry, add:
[snip]
So, what version do you use? The full test case:
struct Zero {}
struct Succ(a) {}
alias One = Succ!Zero;
alias Two = Succ!One;
alias Three = Succ!Two;
alias Four = Succ!Three;
struct Nil {}
struct Cons(a, b) {}
alias list1 = Cons!(Three, Cons!(Two, Cons!(Four, Cons!(One, Nil))));
alias numlHead(L: Cons!(a, b), a, b) = a;
alias numlTail(L: Cons!(a, b), a, b) = b;
void main()
{
pragma(msg, numlHead!list1);
}
compiles with 2.064 (2.063 and earlier does not support new alias syntax). I
cannot see the issue.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list