Skip to content

Commit

Permalink
Fix ImmutableArray Uninitialized error (dotnet#2719)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicancy authored May 3, 2018
1 parent b81aa82 commit 3e5f710
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ where constant.Value.Equals(member.ConstantValue)

if (constant.Kind == TypedConstantKind.Array)
{
if (constant.Values.IsDefaultOrEmpty)
{
return "";
}

return string.Join(",", constant.Values.Select(GetLiteralString));
}

Expand Down

0 comments on commit 3e5f710

Please sign in to comment.