Picking function templates with __traits(getOverloads, ..., true)

Jean-Louis Leroy jl at leroy.nyc
Thu Jul 30 00:33:29 UTC 2020


On Thursday, 30 July 2020 at 00:27:49 UTC, user1234 wrote:
> On Wednesday, 29 July 2020 at 23:57:21 UTC, Jean-Louis Leroy 
> wrote:
>> This works:
>>
>> [...]
>> I may be missing the obvious...or it's a compiler bug???
>
> Yes and it's just been fixed, see 
> https://github.com/dlang/dmd/pull/11431.
> So uncommenting the second times works on ~master.

Aaaaah thanks! In the meantime I realized that picking the 
overload at index 1 works. That's the difference between 'foo' 
and 'times'. Then I was 80% sure it was a bug.


More information about the Digitalmars-d-learn mailing list