Roslyn: No completion when using pattern matching on an enum

Created on 30 Oct 2020  路  2Comments  路  Source: dotnet/roslyn

Version Used: Version 16.8.0 Preview 5.0

Steps to Reproduce:

Type a . at the $$:

namespace N
{
    enum RankedMusicians
    {
        BillyJoel,
        EveryoneElse
    }

    class C
    {
        void M(RankedMusicians m)
        {
            if (m is RankedMusicians.$$
        }
    }
}

Expected Behavior:
Completion for the enum pops up

Actual Behavior:
Nothin'

4 - In Review Area-IDE Bug

Most helpful comment

Nice try, bot.

All 2 comments

Nice try, bot.

This would be in the CSharpTypeInferenceService if anyone wants to take a look.

Was this page helpful?
0 / 5 - 0 ratings