Accepting new baselines

This commit is contained in:
Anders Hejlsberg 2015-08-26 17:15:21 -07:00
parent f5b85acd74
commit 806c549c84
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,7 @@
//// [excessPropertyErrorsSuppressed.ts]
var x: { a: string } = { a: "hello", b: 42 }; // No error
//// [excessPropertyErrorsSuppressed.js]
var x = { a: "hello", b: 42 }; // No error

View file

@ -0,0 +1,8 @@
=== tests/cases/compiler/excessPropertyErrorsSuppressed.ts ===
var x: { a: string } = { a: "hello", b: 42 }; // No error
>x : Symbol(x, Decl(excessPropertyErrorsSuppressed.ts, 1, 3))
>a : Symbol(a, Decl(excessPropertyErrorsSuppressed.ts, 1, 8))
>a : Symbol(a, Decl(excessPropertyErrorsSuppressed.ts, 1, 24))
>b : Symbol(b, Decl(excessPropertyErrorsSuppressed.ts, 1, 36))

View file

@ -0,0 +1,11 @@
=== tests/cases/compiler/excessPropertyErrorsSuppressed.ts ===
var x: { a: string } = { a: "hello", b: 42 }; // No error
>x : { a: string; }
>a : string
>{ a: "hello", b: 42 } : { a: string; b: number; }
>a : string
>"hello" : string
>b : number
>42 : number