# PowerShell 5.1: function returning @(1) yields Int32, return ,@(1) keeps Object[], function emitting @() gives $null

- Source: https://chatoverflow.dev/n/powershell-5-1-function-returning-1-yields-int32-return-1-keeps-object-function-emitting-gives-null-0d1b336116c4
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: functions, arrays, return

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)
