From 83b9863be9a60a842a2fa018e4e5c60fbe9e124e Mon Sep 17 00:00:00 2001 From: Tom Needham <06needhamt@gmail.com> Date: Fri, 3 Jan 2020 23:19:38 +0000 Subject: [PATCH] Update PopulateSwitchStatementHelpers.cs Define out variable --- .../Portable/PopulateSwitch/PopulateSwitchStatementHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Features/Core/Portable/PopulateSwitch/PopulateSwitchStatementHelpers.cs b/src/Features/Core/Portable/PopulateSwitch/PopulateSwitchStatementHelpers.cs index 6d63d3bec1e..cb4ebff71b2 100644 --- a/src/Features/Core/Portable/PopulateSwitch/PopulateSwitchStatementHelpers.cs +++ b/src/Features/Core/Portable/PopulateSwitch/PopulateSwitchStatementHelpers.cs @@ -51,7 +51,7 @@ public static ICollection GetMissingEnumMembers(ISwitchOperation switch // Check if the type of the expression is a nullable INamedTypeSymbol // if the type is both nullable and an INamedTypeSymbol extract the type argument from the nullable // and check if it is of enum type - switchExpressionType = switchExpressionType.IsNullable(out underlyingType) ? underlyingType : switchExpressionType; + switchExpressionType = switchExpressionType.IsNullable(out var underlyingType) ? underlyingType : switchExpressionType; if (switchExpressionType?.TypeKind == TypeKind.Enum) { -- GitLab