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

Commit 49ce2da

Browse files
committed
add test for #459
1 parent b8b86fd commit 49ce2da

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/lib/scope-analysis.js

+16
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,20 @@ type Foo = 1;
243243

244244
assert.deepStrictEqual(messages, []);
245245
});
246+
247+
test("https://github.com/eslint/typescript-eslint-parser/issues/459", () => {
248+
const code = `
249+
type foo = any;
250+
function bar(foo: any) {}
251+
`;
252+
const config = {
253+
parser: "typescript-eslint-parser",
254+
rules: {
255+
"no-shadow": "error"
256+
}
257+
};
258+
const messages = linter.verify(code, config, { filename: "issue.ts" });
259+
260+
assert.deepStrictEqual(messages, []);
261+
});
246262
});

0 commit comments

Comments
 (0)