Skip to content

Show union of supported types when completing overload #19474

Closed
@mjbvz

Description

@mjbvz

TypeScript Version: 2.7.0-dev.20171025

Code

interface Abc {
    abc: number
}

interface Xyz {
    xyz: number
}

declare function foo(x: Abc);
declare function foo(x: Xyz); 

foo({
    |
})

Trigger completions at |

Expected behavior:
Suggestions for both abc and xyz are returned since either version of overload could apply

Actual behavior:
Only a completion for abc is returned.

// cc @octref

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: Completion ListsThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issueSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions