| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:fd819a19-4bdd-610b-686f-b3339c461524 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 98E8:A6E9E:56C3573:79036EC:6A5512AB |
| html-safe-nonce | 537bf80114f51a395d2d0bd7380b82450dc98c1381eb233830dcd0dc1215f95e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEU4OkE2RTlFOjU2QzM1NzM6NzkwMzZFQzo2QTU1MTJBQiIsInZpc2l0b3JfaWQiOiIyNjE5NTU1MTMxNzYzNzkwNTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d97d4141f058040333fbea6de9b8f24ef402b81249b5ef68cb2728ecaed2559f |
| hovercard-subject-tag | pull_request:2413353892 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/25224/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/c2f0a55fd34d705899a377689fbbf1e3c8846b99e4ed683d455e2419a51a897a/PowerShell/PowerShell/pull/25224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2f0a55fd34d705899a377689fbbf1e3c8846b99e4ed683d455e2419a51a897a/PowerShell/PowerShell/pull/25224 |
| og:image:alt | PR Summary
This PR updates the variable type inference to ignore the assignments made within the same CommandAst as the variable that is being inferred. This fixes scenarios like: gci 2>Variable... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MartinGC94 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| turbo-cache-control | no-cache |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f2adbaa4b43ea302b02981f637a782ae92ed6dc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/25224#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell |
| Reload | https://github.com/PowerShell/PowerShell/pull/25224 |
| Reload | https://github.com/PowerShell/PowerShell/pull/25224 |
| Reload | https://github.com/PowerShell/PowerShell/pull/25224 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
|
PowerShell
| https://github.com/PowerShell |
| PowerShell | https://github.com/PowerShell/PowerShell |
|
Notifications
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Fork
8.4k
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Star
54.4k
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Code
| https://github.com/PowerShell/PowerShell |
|
Issues
1.2k
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
288
| https://github.com/PowerShell/PowerShell/pulls |
|
Discussions
| https://github.com/PowerShell/PowerShell/discussions |
|
Actions
| https://github.com/PowerShell/PowerShell/actions |
|
Projects
| https://github.com/PowerShell/PowerShell/projects |
|
Security and quality
3
| https://github.com/PowerShell/PowerShell/security |
|
Insights
| https://github.com/PowerShell/PowerShell/pulse |
|
Code
| https://github.com/PowerShell/PowerShell |
|
Issues
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
| https://github.com/PowerShell/PowerShell/pulls |
|
Discussions
| https://github.com/PowerShell/PowerShell/discussions |
|
Actions
| https://github.com/PowerShell/PowerShell/actions |
|
Projects
| https://github.com/PowerShell/PowerShell/projects |
|
Security and quality
| https://github.com/PowerShell/PowerShell/security |
|
Insights
| https://github.com/PowerShell/PowerShell/pulse |
| iSazonov | https://github.com/iSazonov |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| MartinGC94:ImproveOutVarInference | https://github.com/MartinGC94/PowerShell/tree/ImproveOutVarInference |
| Conversation | https://github.com/PowerShell/PowerShell/pull/25224 |
| Commits3 (3) | https://github.com/PowerShell/PowerShell/pull/25224/commits |
| Checks | https://github.com/PowerShell/PowerShell/pull/25224/checks |
| Files changed | https://github.com/PowerShell/PowerShell/pull/25224/files |
| Exclude outvariable assignments within the same CommandAst when inferring variables | https://github.com/PowerShell/PowerShell/pull/25224#top |
| iSazonov | https://github.com/iSazonov |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| MartinGC94:ImproveOutVarInference | https://github.com/MartinGC94/PowerShell/tree/ImproveOutVarInference |
|
| https://github.com/MartinGC94 |
| MartinGC94 | https://github.com/MartinGC94 |
| Mar 24, 2025 | https://github.com/PowerShell/PowerShell/pull/25224#issue-2942816294 |
| #25206 (comment) | https://github.com/PowerShell/PowerShell/pull/25206#discussion_r2007405868 |
| PR has a meaningful title | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Summarized changes | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Work in Progress | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress |
| Breaking changes | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes |
| Experimental feature(s) needed | https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Experimental_Features.md |
| Documentation needed | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Make sure you've added a new test if existing tests do not effectively test the code changed | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting |
| PowerShell Editor Services | https://github.com/PowerShell/PowerShellEditorServices |
| PowerShell extension | https://github.com/PowerShell/vscode-powershell |
| PSScriptAnalyzer | https://github.com/PowerShell/PSScriptAnalyzer |
| EditorSyntax | https://github.com/PowerShell/EditorSyntax |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
|
| https://github.com/MartinGC94 |
| Exclude outvariable assignments within the same commandast when infer… | https://github.com/PowerShell/PowerShell/pull/25224/commits/680b430285db1c25c3854d9dfcc6772edfd50cf9 |
| 680b430 | https://github.com/PowerShell/PowerShell/pull/25224/commits/680b430285db1c25c3854d9dfcc6772edfd50cf9 |
| https://github.com/MartinGC94 |
| MartinGC94 | https://github.com/MartinGC94 |
| SeeminglyScience | https://github.com/SeeminglyScience |
| daxian-dbw | https://github.com/daxian-dbw |
| code owners | https://github.com/PowerShell/PowerShell/blob/696fa7634b0bf3587d2bd1f1f5a2b7d8b09497f0/.github/CODEOWNERS#L46 |
| March 24, 2025 10:44 | https://github.com/PowerShell/PowerShell/pull/25224#event-16953211843 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
|
CL-General
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General |
| Mar 24, 2025 | https://github.com/PowerShell/PowerShell/pull/25224#event-16953922034 |
| https://github.com/iSazonov |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
| https://github.com/apps/azure-pipelines |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
| Mar 24, 2025 | https://github.com/PowerShell/PowerShell/pull/25224#event-16954036642 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
|
Mar 25, 2025
| https://github.com/PowerShell/PowerShell/pull/25224#pullrequestreview-2712297397 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/25224/files/680b430285db1c25c3854d9dfcc6772edfd50cf9 |
| src/System.Management.Automation/engine/parser/TypeInferenceVisitor.cs | https://github.com/PowerShell/PowerShell/pull/25224/files/680b430285db1c25c3854d9dfcc6772edfd50cf9#diff-30feea0794a0191c121a83e2fa60dbacf701dd9c5be6c4d57b1865cdee745d6b |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
|
| https://github.com/MartinGC94 |
| Add comment | https://github.com/PowerShell/PowerShell/pull/25224/commits/796d58c0bbbfb5f21aed33520a82b85949899168 |
| 796d58c | https://github.com/PowerShell/PowerShell/pull/25224/commits/796d58c0bbbfb5f21aed33520a82b85949899168 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
| Mar 25, 2025 | https://github.com/PowerShell/PowerShell/pull/25224#issuecomment-2751825721 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
|
Mar 25, 2025
| https://github.com/PowerShell/PowerShell/pull/25224#pullrequestreview-2714411192 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/25224/files/796d58c0bbbfb5f21aed33520a82b85949899168 |
| https://github.com/iSazonov |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
| https://github.com/apps/azure-pipelines |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
| Mar 26, 2025 | https://github.com/PowerShell/PowerShell/pull/25224#issuecomment-2754199672 |
| @MartinGC94 | https://github.com/MartinGC94 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
|
| https://github.com/MartinGC94 |
| Merge branch 'master' into ImproveOutVarInference | https://github.com/PowerShell/PowerShell/pull/25224/commits/43d249a1e1243f2d4b833a1b74adb71f9b7c0d0f |
| 43d249a | https://github.com/PowerShell/PowerShell/pull/25224/commits/43d249a1e1243f2d4b833a1b74adb71f9b7c0d0f |
| https://github.com/iSazonov |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
| https://github.com/apps/azure-pipelines |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
| March 26, 2025 17:15 | https://github.com/PowerShell/PowerShell/pull/25224#event-16997091964 |
| https://github.com/iSazonov |
| iSazonov | https://github.com/iSazonov |
| 0c96975 | https://github.com/PowerShell/PowerShell/commit/0c96975d1ef3d27fa1e64b8c4b4676be7e5614fb |
| Mar 26, 2025 | https://github.com/PowerShell/PowerShell/pull/25224#event-16997793121 |
| https://github.com/apps/microsoft-github-policy-service |
| microsoft-github-policy-service | https://github.com/apps/microsoft-github-policy-service |
| Mar 26, 2025 | https://github.com/PowerShell/PowerShell/pull/25224#issuecomment-2755338991 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
| @MartinGC94 | https://github.com/MartinGC94 |
| https://aka.ms/PSRepoFeedback | https://aka.ms/PSRepoFeedback |
| Microsoft Forms | https://aka.ms/PSRepoFeedback |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
| Sysoiev-Yurii | https://github.com/Sysoiev-Yurii |
|
May 12, 2025
| https://github.com/PowerShell/PowerShell/pull/25224#ref-commit-2c48c6d |
|
| https://github.com/MartinGC94 |
|
| https://github.com/Sysoiev-Yurii |
| Exclude outvariable assignments within the same CommandAst when infer… | https://github.com/Sysoiev-Yurii/PowerShell/commit/2c48c6d7f8cd14ee9b4a794654ee7b315c575226 |
| 2c48c6d | https://github.com/Sysoiev-Yurii/PowerShell/commit/2c48c6d7f8cd14ee9b4a794654ee7b315c575226 |
| PowerShell#25224 | https://github.com/PowerShell/PowerShell/pull/25224 |
| SIRMARGIN | https://github.com/SIRMARGIN |
|
Dec 12, 2025
| https://github.com/PowerShell/PowerShell/pull/25224#ref-commit-236626c |
|
| https://github.com/MartinGC94 |
|
| https://github.com/SIRMARGIN |
| Exclude outvariable assignments within the same CommandAst when infer… | https://github.com/SIRMARGIN/PowerShell/commit/236626c6ce4b92a018ec373834cf8785023457d4 |
| 236626c | https://github.com/SIRMARGIN/PowerShell/commit/236626c6ce4b92a018ec373834cf8785023457d4 |
| PowerShell#25224 | https://github.com/PowerShell/PowerShell/pull/25224 |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224 |
|
| https://github.com/iSazonov |
|
iSazonov
| https://github.com/iSazonov |
|
| https://github.com/PowerShell/PowerShell/pull/25224/files/796d58c0bbbfb5f21aed33520a82b85949899168 |
|
| https://github.com/daxian-dbw |
|
daxian-dbw
| https://github.com/daxian-dbw |
|
| https://github.com/SeeminglyScience |
|
SeeminglyScience
| https://github.com/SeeminglyScience |
|
| https://github.com/iSazonov |
|
iSazonov
| https://github.com/iSazonov |
|
CL-General
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/25224 |
|
| https://github.com/MartinGC94 |
|
| https://github.com/iSazonov |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |