[Issue 12390] Regression (2.065): "has no effect in expression" diagnostic regression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 29 02:30:20 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12390
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-03-29 11:30:04 EET ---
Even if fun is not pure, the code performs two redundant operations (obtaining
a field of the result, then comparing it to something).
fun();
This should compile.
fun().i == 4;
This should not.
> Rather the behavior change was an actual fix of rejects-valid bug.
In a [Refactoring] pull request?
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list