foreach on a tuple using aliases
Timon Gehr
timon.gehr at gmx.ch
Mon Aug 6 15:31:46 UTC 2018
On 06.08.2018 14:37, Steven Schveighoffer wrote:
> On 8/5/18 11:40 AM, Timon Gehr wrote:
>> On 05.08.2018 16:07, Steven Schveighoffer wrote:
>>> So is this a bug? Is it expected?
>>
>> It's a bug. The two copies of 'item' are not supposed to be the same
>> symbol. (Different types -> different symbols.)
>
> Yep. I even found it has nothing to do with foreach on a tuple:
> https://run.dlang.io/is/vxQlIi
>
> I wonder though, it shouldn't really be a different type that triggers
> it, right?
It shouldn't.
More information about the Digitalmars-d-learn
mailing list