-
Notifications
You must be signed in to change notification settings - Fork 13.4k
const x = require("m") should create an alias symbol #25533
Copy link
Copy link
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFix AvailableA PR has been opened for this issueA PR has been opened for this issuecheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFix AvailableA PR has been opened for this issueA PR has been opened for this issuecheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript
Type
Fields
Give feedbackNo fields configured for issues without a type.
TypeScript Version: 3.0.0-dev.20180707
Code
Expected behavior:
xinconst xis an alias of thexinfunction x() {}, so all references are found.Actual behavior:
xis a variable that happens to be the same type as the otherx. Only references inb.jsare found.