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
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