IDE0018 wanting to inline variable breaks compilation #40650
Labels
Area-IDE
Bug
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
Feature - IDE0018
Inline declaration
Feature - Pattern Matching
Pattern Matching
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
IDE-CodeStyle
Built-in analyzers, fixes, and refactorings
Milestone
This issue has been moved from a ticket on Developer Community.
Hence the following compilable code:
This will suggest IDE: 0018: Variable declaration can be inlined as marked by the comment above, suggesting to inline
price
to the firstout
variable:This code does not compile due to multiple issues (all marked above):
I don’t expect suggestions to break code when applied, so I’m reporting this as a bug.
Original Comments
Visual Studio Feedback System on 12/29/2019, 10:15 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: