Skip to content

Goto definition for destructuring should go to the property definition #16151

Closed
@ghost

Description

TypeScript Version: nightly (2.4.0-dev.20170530)

Code

interface I { x: number; }

function f({ x }: I) {
    return x;
}

Expected behavior:

Goto-definition at x in { x } should go to the property declaration.

Actual behavior:

It takes me to the beginning of the identifier that I'm already at.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions