Maybe a dmd bug, what do you think ?

user123456789abcABC via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 6 00:48:37 PST 2015


Template parameter deduction in partially specialized template 
fails:

---
enum Bar{b,a,r}
void foo(Bar bar, T)(T t){}
alias foob(T) = foo!(Bar.b, T);

void main()
{
     foo!(Bar.b)(8);
     foob(8); // autsch
}
---

It looks like a bug, doesn't it ?




More information about the Digitalmars-d-learn mailing list