Skip to content

Commit

Permalink
Merge pull request #2108 from OmniSharp/bugfix/unboxing
Browse files Browse the repository at this point in the history
fixed CS8605 "Unboxing possibly null value"
  • Loading branch information
filipw authored Mar 7, 2021
2 parents 4a25097 + c289699 commit 4510973
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private static void VerifyEnumsInSync(Type enum1, Type enum2)
Debug.Assert(lspValues.Length == modelValues.Length);
for (int i = 0; i < lspValues.Length; i++)
{
Debug.Assert((int)lspValues.GetValue(i) == (int)modelValues.GetValue(i));
Debug.Assert((int?)lspValues.GetValue(i) == (int?)modelValues.GetValue(i));
}
}

Expand Down

0 comments on commit 4510973

Please sign in to comment.