Take the following code: template Seq(T...) { alias T Seq; } auto exec(alias F)() { return F(); } void main() { foreach (x; Seq!(0, 1)) static assert (exec!(() => x)() == x); } This will fail with "Error: static assert (0 == 1) is false" on DMD64 v2.059.
Works now.