Skip to content

Commit

Permalink
Add more block scope tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff committed Dec 6, 2017
1 parent 44900ab commit 42ad4ed
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/rules/usage/var.ts.lint
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ setTimeout();

{
let i;
for (i = 0; i < 10: ++i) {
for (i = 0; i < 10; ++i) {
let i;
~ [Unused]
}
}
{
let i;
~ [Unused]
for (let i = 0; i < 10: ++i) {
for (let i = 0; i < 10; ++i) {
let i;
~ [Unused]
}
Expand All @@ -96,3 +96,14 @@ setTimeout();
}
i = 1;
}
{
let i;
~ [Unused]
for (let i = 0;false;)
++i;
}
{
let i;
for (;false;)
++i;
}

0 comments on commit 42ad4ed

Please sign in to comment.