Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EE] Handle ArrayExpansion for 1D array with non-zero lower bounds (#…
…58915) Issue: - Evaluating + expanding `Array myArray = Array.CreateInstance(typeof(int), new int[1] { 12 }, new int[1] { 1 });` while debugging crashes Visual Studio. Changes: 1. ArrayExpansion: - Lower bounds correction wasn't being done for 1D arrays, so add it. - This can't really be tested in C#/VB since Array.CreateInstance with 1D params can't be cast to a 1D array (see Remarks here: https://docs.microsoft.com/en-us/dotnet/api/system.array.createinstance#system-array-createinstance(system-type-system-int32()-system-int32()) - Corner case, will add tests on debugger side. Co-authored-by: Ramkumar Ramesh <ramram@microsoft.com>
- Loading branch information