2.068.0 regression?

sigod via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 19 14:56:20 PDT 2015


On Wednesday, 19 August 2015 at 21:32:17 UTC, Adam D. Ruppe wrote:
> On Wednesday, 19 August 2015 at 21:26:34 UTC, sigod wrote:
>> Consider this code:
>
> Not a regression per se - core.time just introduced a new `to` 
> function that is conflicting with your variable name because 
> you imported core.time in a more local scope.
>
> You can just do ["to": this.to] to disambiguate the name.

```
T to(string units, T, D)(D td)
```

But what compiler does with this function? How `void` appears in 
the error message?

Why does it even picks this function? `to` has required argument, 
apparently it can't be called without one.


More information about the Digitalmars-d mailing list