Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Imported interfaces destructured in function argument gives no-shadow #545

Closed
avocadowastaken opened this issue Nov 8, 2018 · 1 comment · Fixed by #540
Closed

Imported interfaces destructured in function argument gives no-shadow #545

avocadowastaken opened this issue Nov 8, 2018 · 1 comment · Fixed by #540
Labels

Comments

@avocadowastaken
Copy link

Error occurred after upgrade from typescript-eslint-parser^20.0.0.
Potentially related to #540.

What version of TypeScript are you using?

3.1.6

What version of typescript-eslint-parser are you using?

20.1.1

What code were you trying to parse?

import { Foo } from "./Foo";

function foo(args: Foo) {} // No error
function bar([...args]: Foo) {} // No error
function baz({ ...args }: Foo) {} //  'Foo' is already declared in the upper scope

const foo = Foo; // No error
const [...foo] = Foo; // No error
const { ...foo } = Foo; // No error
@mysticatea
Copy link
Member

Thank you for the report.

This looks the same problem as #535.
It should be fixed by #540.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants