https://d.puremagic.com/issues/show_bug.cgi?id=12390


Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


--- Comment #2 from Vladimir Panteleev <[email protected]> 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: -------

Reply via email to