Skip to content

Find references does not work for re-exported default #17007

Closed
@OliverJAsh

Description

@OliverJAsh

TypeScript Version: 2.4.1

Code

// export.ts
const foo = 1;
export default foo;
// re-export.ts
export { default } from './export';
// re-export-dep.ts
import fooDefault from './re-export';
// tsconfig.json
{
    "files": [
        "./re-export-dep.ts"
    ]
}

Expected behavior:
When running "find references" on foo in export.ts, the usage in re-export-dep.ts should be found.

Actual behavior:
The reference is not found.

image

If changed to a named export, the references can be found.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions