Maybe a dmd bug, what do you think ?
    rsw0x via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Nov  6 00:54:33 PST 2015
    
    
  
On Friday, 6 November 2015 at 08:48:38 UTC, user123456789abcABC 
wrote:
> 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 ?
I believe this is https://issues.dlang.org/show_bug.cgi?id=1807
    
    
More information about the Digitalmars-d-learn
mailing list