Comment #0 by peter.alexander.au — 2014-02-07T14:41:32Z
See this:
template id(alias a) { alias id = a; }
void main() {
import std.typetuple;
alias TypeTuple!(() => 0, () => 1) fs;
foreach (i, f; fs)
assert(id!f() == i, i.stringof);
}
In both iterations, id!f aliases ()=>0, so the assertion fails on the second iteration.
Expected behaviour: id!f aliases ()=>1 on the second iteration, and passes the assertion.