Shadowing of module global TLS variables is not an error
Mathias LANG
geod24 at gmail.com
Fri Aug 14 09:41:27 UTC 2020
On Friday, 14 August 2020 at 08:58:04 UTC, Per Nordlöw wrote:
> Shouldn't this code give a shadowing error?
>
> int x; // global?
>
> void test() @safe nothrow @nogc
> {
> int x = x; // shouldn't this give a
> shadowing warning?
> }
Try to deprecate it and see how much breaks ;)
The real offender is not this though, it's shadowing members from
super classes.
More information about the Digitalmars-d
mailing list