You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, the single-object output stored in the variable targeted with -OutVariable received an array list rather than a scalar (the single-element collection wasn't unwrapped).
Also, it is type [System.Collections.ArrayList] that is always used, in contrast with the [System.Object[]] instances you get with regular assignments.
PowerShell v6.0.0-alpha (v6.0.0-alpha.15) on Darwin Kernel Version 16.4.0: Thu Dec 2222:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64
PowerShell v5.1.14393.693 on Microsoft Windows 10 Pro (64-bit; v10.0.14393)
Note: Also affects other common parameters: see #3773
Steps to reproduce
Expected behavior
Type name
System.DateTimeActual behavior
Type name
System.Collections.ArrayListThat is, the single-object output stored in the variable targeted with
-OutVariablereceived an array list rather than a scalar (the single-element collection wasn't unwrapped).Also, it is type
[System.Collections.ArrayList]that is always used, in contrast with the[System.Object[]]instances you get with regular assignments.See also: http://stackoverflow.com/a/40666568/45375
Environment data