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

Commit

Permalink
add test for #535
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Nov 8, 2018
1 parent 6e70971 commit 81f4f30
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/lib/scope-analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,4 +312,22 @@ export default class Test {

assert.deepStrictEqual(messages, []);
});

test("https://github.com/eslint/typescript-eslint-parser/issues/535", () => {
const code = `
function foo({ bar }: { bar: string }) {
console.log(bar);
}
`;
const config = {
parser: "typescript-eslint-parser",
rules: {
"no-dupe-args": "error",
"no-redeclare": "error"
}
};
const messages = linter.verify(code, config, { filename: "issue.ts" });

assert.deepStrictEqual(messages, []);
});
});

0 comments on commit 81f4f30

Please sign in to comment.