Accepting new baselines
This commit is contained in:
parent
f5b85acd74
commit
806c549c84
|
@ -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
|
|
@ -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))
|
||||
|
|
@ -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
|
||||
|
Loading…
Reference in a new issue