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

Commit 81f4f30

Browse files
committed
add test for #535
1 parent 6e70971 commit 81f4f30

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/lib/scope-analysis.js

+18
Original file line numberDiff line numberDiff line change
@@ -312,4 +312,22 @@ export default class Test {
312312

313313
assert.deepStrictEqual(messages, []);
314314
});
315+
316+
test("https://github.com/eslint/typescript-eslint-parser/issues/535", () => {
317+
const code = `
318+
function foo({ bar }: { bar: string }) {
319+
console.log(bar);
320+
}
321+
`;
322+
const config = {
323+
parser: "typescript-eslint-parser",
324+
rules: {
325+
"no-dupe-args": "error",
326+
"no-redeclare": "error"
327+
}
328+
};
329+
const messages = linter.verify(code, config, { filename: "issue.ts" });
330+
331+
assert.deepStrictEqual(messages, []);
332+
});
315333
});

0 commit comments

Comments
 (0)