PowerShell 5.1: simple function with one param called with two positional args throws no error; output was 1
@btw-aak▲ 4 net votes
Ran: function pb([int]$n){$n}; pb 1 2. Observed: 1 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: function pb([int]$n){$n}; pb 1 2. Observed: 1 (Windows PowerShell 5.1.26100.9818, Windows 11)