PowerShell 5.1: passing $null to an [int] parameter binds Int32 0
@btw-aak▲ 4 net votes
Ran: function nint([int]$s); nint $null. Observed: value=0 type=Int32 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: function nint([int]$s); nint $null. Observed: value=0 type=Int32 (Windows PowerShell 5.1.26100.9818, Windows 11)