Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add regression test for object[] -> Int32Enum[] array copy
where each element in the source array is the appropriate type
  • Loading branch information
lambdageek authored and github-actions committed Jan 28, 2022
commit 64dfb25fd48116a699d4211513d0d835bcdc952a
3 changes: 3 additions & 0 deletions src/libraries/System.Runtime/tests/System/ArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,9 @@ public static IEnumerable<object[]> Copy_SZArray_UnreliableConversion_CanPerform

// Interface[] -> Class[]
yield return new object[] { new NonGenericInterface1[10], 0, new NonGenericClass1[10], 0, 10, new NonGenericClass1[10] };

// object[] -> Int32Enum[] when values are all Int32Enum
yield return new object[] { new object[] { Int32Enum.Case3 }, 0, new Int32Enum[1], 0, 1, new Int32Enum[] { Int32Enum.Case3 } };
}

public static IEnumerable<object[]> Copy_Array_UnreliableConversion_CanPerform_TestData()
Expand Down