-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete Allowed Types list #6884
Comments
Hi @iRon7 . Thanks for the feedback. As far as I can tell, the list is accurate unless you can find specifics. The following is what I ran to test: # Temporarily change the language mode for a session.
$ExecutionContext.SessionState.LanguageMode = "ConstrainedLanguage"
$test = [System.Collections.Specialized.OrderedDictionary]::new()
I'll be closing this for now but if you have more to add, I'll be keeping an eye on the issue and reopen if necessary. |
Hmm, $ExecutionContext.SessionState.LanguageMode = "ConstrainedLanguage"
$Test = [Ordered]@{a=1}
$Test.PSTypeNames
System.Collections.Specialized.OrderedDictionary
System.Object Or is the syntactic sugar construct |
What version are you working with. For me, in version 7, I can't even create it. However, in V5 and 6, I can create it and access it but can't do anything method based... Ordered is an alias for the type, they are are same. I'll do some digging. EDIT: Retracting my statement about [ordered]. Will follow up. |
|
So, according the the PowerShell team. This isn't expected behavior and the official positions for things like this is not to document them and they will be reviewing the behavior to see if there is a fix needed. This is a good find and if there is more information coming my way, I'll make sure to pass it on to you. Thanks again! |
Thanks, shall I create a formal issue at: https://github.com/PowerShell/PowerShell/issues ? |
It would'nt hurt and would give you a good avenue to add info or communicate with the devs |
There is (at least) one type missing from the Allowed Types list under CONSTRAINED LANGUAGE (Constrained Language).
See also StackOverflow question and comments: Automatically retrieve Allowed Types for Constrained Language mode
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: