-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const x = require("m")
should create an alias symbol
#25533
Comments
The in-file type of commonjs modules is usually wrong, so I'll have to fix bugs related to that before aliasing will really make sense. I will look at #25621 first. |
The test from the original post still isn't returning results in |
Turns out github didn't recognise that the "fix #xxxx" syntax occurred in a conditional clause and unconditionally closed this issue. :) Thanks for re-opening. |
That's only correct if the |
Note that the type of |
TypeScript Version: 3.0.0-dev.20180707
Code
Expected behavior:
x
inconst x
is an alias of thex
infunction x() {}
, so all references are found.Actual behavior:
x
is a variable that happens to be the same type as the otherx
. Only references inb.js
are found.The text was updated successfully, but these errors were encountered: