Skip to content

Add type inference for PSObject and Hashtable #7230

Closed

Description

Constructs like

@{
    Name = "Staffan",
    Size = 3
}

is quite easy to infer types from, and the same is true for the conversion expression to

[pscustomobject] @{
    Name = "Staffan",
    Size = 3
}

The same mechanisms that is needed to support synthetic PSTypeNames could also be used to provide type inference for Select-Object -Property and the Group and Value propererties of the output of Group-Object

None of this is supported as of 6.1-preview 3.

Activity

  1. added
    Issue-Enhancement
    on Jul 4, 2018
  2. added a commit that references this issue on Sep 19, 2018
    eb28633
  3. added a commit that references this issue on Aug 6, 2026
    eeeff70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-FixedWG-Interactive-IntelliSense

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions