mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
This change fixes 3 issues: - According to [PowerShell Language Specification Version 3.0](https://www.microsoft.com/en-us/download/details.aspx?id=36389), as quoted: "_The result is the (possibly empty) unconstrained 1-dimensional array_", `@(...)` should only return `object[]` array. - `@([object[]]$null).GetType()` fails with error `"You cannot call a method on a null-valued expression."` - `@([System.Collections.Generic.List[object]]$null)` fails with error `"Object reference not set to an instance of an object."`