Adding new tests

This commit is contained in:
Anders Hejlsberg
2016-01-06 10:52:54 -08:00
parent 75b4c50cec
commit dbb4544d61
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
let a: Date[];
let b: boolean[];
for (let x in a) {
let a1 = a[x];
let a2 = a[(x)];
let a3 = a[+x];
let b1 = b[x];
let b2 = b[(x)];
let b3 = b[+x];
}

View File

@@ -0,0 +1,19 @@
// @noImplicitAny: true
let a: Date[];
for (let x in a) {
let a1 = a[x + 1];
let a2 = a[x - 1];
if (x === 1) {
}
let a3 = x.unknownProperty;
}
var i: number;
for (var i in a ) {
}
var j: any;
for (var j in a ) {
}