[Issue 3878] Arguments and members with the same name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 16 15:03:27 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=3878
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmitry.olsh at gmail.com
--- Comment #14 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
If it were to ever happen it needs a DIP.
// is super common idiom and nobody is buffled by what is happening here
this.x = x;
// Now this should be caught be compiler just using the heuristic
// "pure expression with its results discarded"
x = x;
--
More information about the Digitalmars-d-bugs
mailing list