We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Some .NET methods use "out" to return a value to variables, in PowerShell we can use [ref] to capture that output like this:
[ref]
$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.
No response
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:The type inference should be able to detect this and infer the type for such variables.
Proposed technical implementation details (optional)
No response