Skip to content

Commit dbb4544

Browse files
committed
Adding new tests
1 parent 75b4c50 commit dbb4544

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
let a: Date[];
2+
let b: boolean[];
3+
4+
for (let x in a) {
5+
let a1 = a[x];
6+
let a2 = a[(x)];
7+
let a3 = a[+x];
8+
let b1 = b[x];
9+
let b2 = b[(x)];
10+
let b3 = b[+x];
11+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// @noImplicitAny: true
2+
3+
let a: Date[];
4+
5+
for (let x in a) {
6+
let a1 = a[x + 1];
7+
let a2 = a[x - 1];
8+
if (x === 1) {
9+
}
10+
let a3 = x.unknownProperty;
11+
}
12+
13+
var i: number;
14+
for (var i in a ) {
15+
}
16+
17+
var j: any;
18+
for (var j in a ) {
19+
}

0 commit comments

Comments
 (0)