Intellisense suggests switch expression on ref returns #40928
Labels
Area-IDE
Bug
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
Version Used:
Visual Studio 2019 Version 16.5.0 Preview 1.0
Steps to Reproduce:
convert switch statement to expression
to theswitch
.Expected Behavior:
Either, not suggest the action, if not possible, or convert to valid source code.
Actual Behavior:
Converts the method to
resulting in the error
error CS1525: Invalid expression term 'ref'
for each case line.The text was updated successfully, but these errors were encountered: