From 04ffc9904982178954d351155955cfce2b516fc6 Mon Sep 17 00:00:00 2001 From: Bernd Baumanns Date: Mon, 19 Apr 2021 23:44:52 +0200 Subject: [PATCH] remove: nullableWarnings.Add(GetId(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull)); nullableWarnings.Add(GetId(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNullWithWhen)); --- src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs b/src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs index 5e909537f17fc..b264e75b8a9ff 100644 --- a/src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs +++ b/src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs @@ -41,8 +41,6 @@ static ErrorFacts() nullableWarnings.Add(GetId(ErrorCode.WRN_NullabilityMismatchInTypeParameterNotNullConstraint)); nullableWarnings.Add(GetId(ErrorCode.WRN_ThrowPossibleNull)); nullableWarnings.Add(GetId(ErrorCode.WRN_UnboxPossibleNull)); - nullableWarnings.Add(GetId(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNull)); - nullableWarnings.Add(GetId(ErrorCode.WRN_SwitchExpressionNotExhaustiveForNullWithWhen)); nullableWarnings.Add(GetId(ErrorCode.WRN_ConvertingNullableToNonNullable)); nullableWarnings.Add(GetId(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment));