C# 8 では、switch 式が導入されました。switch 式が網羅的でない場合はどうなりますか? つまり、考えられるすべての値をテストしないとどうなるでしょうか。
static void Main(string[] args)
{
int x = 1;
int imExhaustive = x switch
{
3 => 4,
_ => 0 // x = 1 matches this
};
int okFine = x switch
{
1 => 4 // x = 1 matches this
};
int noMatch = x switch
{
3 => 4 // No match
};
}