Scopes should be disallowed on parameter names (except for private scope) - by Derp McDerp

Status : 


Sign in
to vote
ID 808278 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 11/11/2013 1:28:42 PM
Access Restriction Public


Powershell seems to allow scopes on parameter names:

function foo($global:a, $variable:b, $:c, $private:d, $env:foo, ${c:\foo.txt}) {}

But only one that really makes sense is private scope.
Sign in to post a comment.