Skip to content

Commit

Permalink
Fix CS1503
Browse files Browse the repository at this point in the history
  • Loading branch information
xtqqczze committed Jun 22, 2021
1 parent 80b950b commit c48c69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/System.Runtime/tests/System/ArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4292,15 +4292,15 @@ public static void Fill_Sidecast()
{
uint[] uintArray = (uint[])(object)new int[] { 0, 1, 2, 3 };
Array.Fill<uint>(uintArray, 42);
Assert.Equal(new int[] { 42, 42, 42, 42 }, uintArray);
Assert.Equal(new uint[] { 42, 42, 42, 42 }, uintArray);
}

[Fact]
public static void FillWithStartIndexAndCount_Sidecast()
{
uint[] uintArray = (uint[])(object)new int[] { 0, 1, 2, 3 };
Array.Fill<uint>(uintArray, 42, 1, 2);
Assert.Equal(new int[] { 0, 42, 42, 3 }, uintArray);
Assert.Equal(new uint[] { 0, 42, 42, 3 }, uintArray);
}

[Fact]
Expand Down

0 comments on commit c48c69c

Please sign in to comment.