Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Assigning to an array literal of variables (LHS) should support Deconstruct methods #7471

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

Description

@SeeminglyScience

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

No one assigned

    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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp