- Notifications
You must be signed in to change notification settings - Fork8.1k
Open
Labels
In-PRIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Enginecore PowerShell engine, interpreter, and runtimeWG-ReviewedA Working Group has reviewed this and made a recommendation
Description
Steps to reproduce
$tuple= [Tuple]::Create(1,1)$item1,$item2=$tuple
Expected behavior
Tuple.Item1 is assigned to$item1 andTuple.Item2 is assigned to$item2
Actual behavior
$tuple is assigned to$item1
Environment data
>$PSVersionTableName Value---------PSVersion6.1.0-preview.4PSEdition CoreGitCommitId6.1.0-preview.4OS Microsoft Windows10.0.15063Platform Win32NTPSCompatibleVersions {1.0,2.0,3.0,4.0...}PSRemotingProtocolVersion2.3SerializationVersion1.1.0.1WSManStackVersion3.0
WhileTuple types aren't used frequently in PowerShell there are a few other default types that haveDeconstruct methods likeDictionaryEntry andKeyValuePair<,>.
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Enginecore PowerShell engine, interpreter, and runtimeWG-ReviewedA Working Group has reviewed this and made a recommendation