-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analysis reverts function back to pure after changing the function type #6428
Comments
Thanks for the bug report! However, I am unable to reproduce this on files that I have locally, so I guess it might be something related to the specific file you are working with. Could you please provide us with the file so that we can look into it? |
@xusheng6 It seems to rather be if I change the function type and not reanalysing |
Screen.Recording.2025-02-18.at.11.02.12.mov |
Might be because of this:
|
I think what is happening here is that you set the type of the function, and the property whether a function is a pure function is part of the type, so in other words, you have changed it. I see that the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There is still an issue to be fixed, setting the function type with the "Change Type" dialogue also causes that behaviour. |
@VisualEhrmanntraut can you DM me the file on slack so that we can look into it? |
Probably not but I will try making a minimal reproduction database for you |
I sent it. All you need to reproduce the issue is hit Y to change the function type, and then just hit enter. You will see the function goes back to being pure even though it was changed manually to not pure. |
Simplified repro steps:
|
Version and Platform (required):
Bug Description:
If the purity of a function is changed to false, it will be reverted to true on analysis.
Steps To Reproduce:
Expected Behavior:
It should keep the manual change.
The text was updated successfully, but these errors were encountered: