I am not sure it is the right place to post this issue, but here it is:
Using Visual Studio 17.1.6, adding missing cases to a switch statement on a nullable enum gives an incorrect generated code.
public static string ToAnotherEnum(this MyEnum? myEnumValue)
=> statut switch
{
}
This code will auto-implement the following:
public static string ToAnotherEnum(this MyEnum? myEnumValue)
=> statut switch
{
MyEnum?.Value1 => throw new NotImplementedException(),
MyEnum?.Value2 => throw new NotImplementedException(),
}
Which seems incorrect, there should not be the ?.
I am not sure it is the right place to post this issue, but here it is:
Using Visual Studio 17.1.6, adding missing cases to a switch statement on a nullable enum gives an incorrect generated code.
This code will auto-implement the following:
Which seems incorrect, there should not be the
?.