no-shadow: false positive when importing type #550
Labels
bug
Something isn't working
package: parser
Issues related to @typescript-eslint/parser
scope analyser
Issues that are caused by bugs/incomplete cases in the scope analyser
Milestone
What code were you trying to parse?
This works fine, as expected.
However, if the type is imported, this errors unexpectedly:
What did you expect to happen?
No error, because there is no shadowing. Here I am defining a parameter that has the same name as the type, but this doesn't count as shadowing, because one is a type, one is a value.
What actually happened?
Unexpected error.
Versions
@typescript-eslint/parser
1.90
TypeScript
3.4.1
ESLint
5.16.0
node
8.15.1
npm
6.4.1
The text was updated successfully, but these errors were encountered: