Skip to content

Commit

Permalink
Review 3
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaversa committed Mar 30, 2023
1 parent 6c55f30 commit b5ba602
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,10 @@ void ForeachImplictConversion()
{
_ = (int)boxed; // Compliant
}
foreach (object boxed in stackalloc int?[] { null as int?, 42, 43 })
{
_ = (int)boxed; // Compliant
}
}

void CollectionImplicitBoxing()
Expand Down

0 comments on commit b5ba602

Please sign in to comment.