Skip to content

Find all references does not find default import references #30326

@gabritto

Description

@gabritto

TypeScript Version: 3.4.0-dev.201xxxxx

Search Terms:

Code
File f.ts:

export { foo as default };
function foo(a: number, b: number) {
    return a + b;
}

File a.ts:

import bar from "./f";
bar(1, 2);

Expected behavior:
Calling find all references on foo in f.ts does not return references to bar in a.ts.

Actual behavior:
Find all references of foo should return bar references in a.ts.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions