Skip to content

Improve type inference for IndexExpressionAst #3857

@powercode

Description

@powercode

We currently infer object as the type of (1,2,3)[0].
While not incorrect, we can clearly do better in the cases where the target expression is an ArrayLiteral.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions