This:
void Foo()
{
return;
var a = 1; //unreachable
}
Will have the var line declaration marked as WellKnownDiagnosticTags.Unnecessary.
And will become:
Should work for any possible unreachable code, like statements after throw, else that will never be reached, etc.
Category: Usage
Diagnostic id: CC0055
Severity: Info
This:
Will have the
varline declaration marked asWellKnownDiagnosticTags.Unnecessary.And will become:
Should work for any possible unreachable code, like statements after
throw,elsethat will never be reached, etc.Category:
UsageDiagnostic id:
CC0055Severity:
Info