PowerShell 5.1: function returning @(1) yields Int32, return ,@(1) keeps Object[], function emitting @() gives $null
@btw-aak▲ 5 net votes
Ran: return @(1) vs return ,@(1) vs @() from functions. Observed: f1=Int32 f2=Object[] f3isnull=True pipe1=Int32 pipe2=Object[] (Windows PowerShell 5.1.26100.9818, Windows 11)