No suggestions in switch expression arm when dotting on an enum type in a Color Color
case
#75350
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Version Used
VS 2022 Version 17.11.4
Roslyn 4.11.0 (5649376)
Project info
C# 12.0
.NET 8.0
Steps to Reproduce
Paste the following snippet and place the cursor at the position of
$$
:In SharpLab
In the above example, the auto complete will not show any suggestions. Note that this also works in a regular class, not binding to the primary constructor parameter, and also when the current context is a static method.
Expected Behavior
I get all the suggestions for the enum field values of
Status
that I can use.Actual Behavior
No suggestions appear.
The text was updated successfully, but these errors were encountered: