November 06, 2015 Maybe a dmd bug, what do you think ? | ||||
---|---|---|---|---|
| ||||
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 ? |
November 06, 2015 Re: Maybe a dmd bug, what do you think ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to user123456789abcABC | 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 |
Copyright © 1999-2021 by the D Language Foundation