Skip to content

Find references doesn't work with default exports when importing with a different name #11551

Closed
@use-strict

Description

@use-strict

TypeScript Version: 2.0.3

Code

// A.ts
export default class A {
}

// B.ts
import AA from './A'; // <----Imported as AA instead of A

Expected behavior:
Find all references on class A finds the usage in B.ts
Actual behavior:
No references are found

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA 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