IDE0200 (remove unnecessary lambda expression) can change semantics when capturing writable members #73259
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
Milestone
Version Used:
Steps to Reproduce:
Diagnostic Id:
IDE0200
Expected Behavior:
The code fix should not be offered. It changes the semantics.
Actual Behavior:
After applying the code fix,
N
returnsfalse
instead oftrue
I saw that this was fixed when capturing locals in #69101
The text was updated successfully, but these errors were encountered: