Skip to content

Conversation

v-alje
Copy link
Contributor

@v-alje v-alje commented Apr 4, 2025

PR Summary

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributors guide.
  • Style: This PR adheres to the style guide.

sdwheeler and others added 2 commits April 4, 2025 09:05
…es (#11979)

* Remove invalid types from v5.1's core type list

The types removed from the core types list (permitted in
ConstrainedLanguage mode) are only applicable to PS v6+, so are removed
from the Windows PowerShell v5.1 document.

Unlike in later versions, [ordered] is not a type (accelerator) in
v5.1.

* Add [ref] special case for ConstrainedLanguage

[ref] is found in CoreTypes and is therefore permitted in
ConstrainedLanguage mode. However, casting is not permitted and results
in a statement-terminating error. Other uses (new() instantiation, in
parameter binding, etc) are permitted.

* Minor formatting changes to about_Language_Modes

* Add note on Windows-only CoreTypes

* Add note on [ordered] caveats in v5.1 CL mode

In v5.1, [ordered] is not a type, nor is OrderedDictionary included in
CoreTypes. [ordered] @{} syntax is permitted in v5.1
ConstrainedLanguage mode, but use of the object is limited.

* Remove invalid variable from v5.1's RL mode list
Copy link
Contributor

Learn Build status updates of commit 836bf1f:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Modes.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Core/About/about_Language_Modes.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Core/About/about_Language_Modes.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Core/About/about_Language_Modes.md ✅Succeeded View (powershell-7.6)
reference/docs-conceptual/community/2025-updates.md ✅Succeeded View (>=powershell-5.1)
reference/docs-conceptual/community/hall-of-fame.md ✅Succeeded View (>=powershell-5.1)

For more details, please refer to the build report.

For any questions, please:

@v-alje v-alje merged commit b7f8215 into live Apr 4, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants