Accepting new baselines

This commit is contained in:
Anders Hejlsberg
2016-01-07 10:40:02 -08:00
parent 3344a42686
commit a0fcc0f45a
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
tests/cases/conformance/statements/for-inStatements/for-inStatementsArrayErrors.ts(5,14): error TS7017: Index signature of object type implicitly has an 'any' type.
tests/cases/conformance/statements/for-inStatements/for-inStatementsArrayErrors.ts(5,14): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
tests/cases/conformance/statements/for-inStatements/for-inStatementsArrayErrors.ts(6,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/statements/for-inStatements/for-inStatementsArrayErrors.ts(7,9): error TS2365: Operator '===' cannot be applied to types 'string' and 'number'.
tests/cases/conformance/statements/for-inStatements/for-inStatementsArrayErrors.ts(9,16): error TS2339: Property 'unknownProperty' does not exist on type 'string'.
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/for-inStatements/for-inStatementsArrayErrors.
for (let x in a) {
let a1 = a[x + 1];
~~~~~~~~
!!! error TS7017: Index signature of object type implicitly has an 'any' type.
!!! error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
let a2 = a[x - 1];
~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.

View File

@@ -1,4 +1,4 @@
tests/cases/compiler/noImplicitAnyIndexing.ts(13,26): error TS7017: Index signature of object type implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyIndexing.ts(13,26): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
tests/cases/compiler/noImplicitAnyIndexing.ts(20,9): error TS7017: Index signature of object type implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyIndexing.ts(23,9): error TS7017: Index signature of object type implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyIndexing.ts(31,10): error TS7017: Index signature of object type implicitly has an 'any' type.
@@ -19,7 +19,7 @@ tests/cases/compiler/noImplicitAnyIndexing.ts(31,10): error TS7017: Index signat
// Should be implicit 'any' ; property access fails, no string indexer.
var strRepresentation3 = MyEmusEnum["monehh"];
~~~~~~~~~~~~~~~~~~~~
!!! error TS7017: Index signature of object type implicitly has an 'any' type.
!!! error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
// Should be okay; should be a MyEmusEnum
var strRepresentation4 = MyEmusEnum["emu"];