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

Commit b8b86fd

Browse files
committed
add test for #443
1 parent 72f7120 commit b8b86fd

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
@@ -227,4 +227,20 @@ interface Runnable {
227227

228228
assert.deepStrictEqual(messages, []);
229229
});
230+
231+
test("https://github.com/eslint/typescript-eslint-parser/issues/443", () => {
232+
const code = `
233+
const Foo = 1;
234+
type Foo = 1;
235+
`;
236+
const config = {
237+
parser: "typescript-eslint-parser",
238+
rules: {
239+
"no-redeclare": "error"
240+
}
241+
};
242+
const messages = linter.verify(code, config, { filename: "issue443.ts" });
243+
244+
assert.deepStrictEqual(messages, []);
245+
});
230246
});

0 commit comments

Comments
 (0)