Skip to content

Tab completion type inference does not account for generic method invocation with explicit type parameters #16934

@SeeminglyScience

Description

@SeeminglyScience

Steps to reproduce

TabExpansion2 -inputScript ($s = '[array]::Empty[int]().') -cursorColumn $s.Length |
    % CompletionMatches |
    select -f 5

Expected behavior

CompletionText ListItemText   ResultType ToolTip
-------------- ------------   ---------- -------
Count          Count            Property int Count { get; }
IsFixedSize    IsFixedSize      Property bool IsFixedSize { get; }
IsReadOnly     IsReadOnly       Property bool IsReadOnly { get; }
IsSynchronized IsSynchronized   Property bool IsSynchronized { get; }
Length         Length           Property int Length { get; }

Actual behavior

No results

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.0-preview.2
PSEdition                      Core
GitCommitId                    7.3.0-preview.2
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions