-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the product
Description
Summary of the new feature / enhancement
Some .NET methods use "out" to return a value to variables, in PowerShell we can use [ref] to capture that output like this:
$Tokens = $null
$Errors = $null
$Ast = [System.Management.Automation.Language.Parser]::ParseInput("Hello", [ref] $Tokens, [ref] $Errors)
The type inference should be able to detect this and infer the type for such variables.
Proposed technical implementation details (optional)
No response
mklement0 and SeeminglyScience
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the product