Home Dashboard Directory Help
Search

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


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 808278
Opened: 11/11/2013 1:28:42 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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.
Details
Sign in to post a comment.
Sign in to post a workaround.