Skip to content

Go to definition on callback goes to type position #13593

Description

@tinganho

Expected behavior:

function test(/*to*/callback: (a: any) => void) {
    callback/*from*/(d);
}

Actual behavior:

function test(callback: /*to*/(a: any) => void) {
    callback/*from*/(d);
}

When callback is just function value expression, it goes to the correct position:

function test(/*to*/callback: (a: any) => void) {
    callback/*from*/;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions