Skip to content

Fix type inference of parameters in classic functions - #25172

Merged
Ilya (iSazonov) merged 3 commits into
PowerShell:masterfrom
MartinGC94:FixParamInference
Mar 18, 2025
Merged

Ilya (iSazonov) merged 3 commits into
PowerShell:masterfrom
MartinGC94:FixParamInference

Conversation

@MartinGC94

Copy link
Copy Markdown
Contributor

PR Summary

Fixes type inference for parameters in classic function definitions where the parameters outside the scriptblock definition: function X ([string]$Param1){}

PR Context

I broke it with: #19830

PR Checklist

@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Mar 14, 2025
…sitor.cs

Co-authored-by: Ilya <darpa@yandex.ru>
@iSazonov Ilya (iSazonov) self-assigned this Mar 18, 2025
@iSazonov

This comment was marked as outdated.

@azure-pipelines

This comment was marked as outdated.

@iSazonov
Ilya (iSazonov) merged commit 0ca17fd into PowerShell:master Mar 18, 2025
@microsoft-github-policy-service

microsoft-github-policy-service Bot commented Mar 18, 2025 •

Copy link
Copy Markdown
Contributor

📣 Hey MartinGC94, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@MartinGC94
MartinGC94 deleted the FixParamInference branch March 18, 2025 09:51
SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request Dec 12, 2025
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants