Make shadowing mixin template names an error (5 years old problem)

Nick Treleaven nick at geany.org
Sat May 9 14:24:20 UTC 2026


On Saturday, 9 May 2026 at 12:04:45 UTC, Steven Schveighoffer 
wrote:
> On Tuesday, 5 May 2026 at 21:47:09 UTC, mw wrote:
>> Make shadowing mixin template names an error
>>
>> https://github.com/dlang/dmd/issues/23060#issuecomment-4374242813
>
> Dennis is correct. This is how mixin templates are supposed to 
> work, and if we changed that it would be massively disruptive.

The original issue requests an error for when the mixin only has 
one symbol whose name is shadowed at the use site:
https://github.com/dlang/dmd/issues/19857



More information about the Digitalmars-d mailing list