Skip to content

Commit 806c549

Browse files
committed
Accepting new baselines
1 parent f5b85ac commit 806c549

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//// [excessPropertyErrorsSuppressed.ts]
2+
3+
var x: { a: string } = { a: "hello", b: 42 }; // No error
4+
5+
6+
//// [excessPropertyErrorsSuppressed.js]
7+
var x = { a: "hello", b: 42 }; // No error
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
=== tests/cases/compiler/excessPropertyErrorsSuppressed.ts ===
2+
3+
var x: { a: string } = { a: "hello", b: 42 }; // No error
4+
>x : Symbol(x, Decl(excessPropertyErrorsSuppressed.ts, 1, 3))
5+
>a : Symbol(a, Decl(excessPropertyErrorsSuppressed.ts, 1, 8))
6+
>a : Symbol(a, Decl(excessPropertyErrorsSuppressed.ts, 1, 24))
7+
>b : Symbol(b, Decl(excessPropertyErrorsSuppressed.ts, 1, 36))
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
=== tests/cases/compiler/excessPropertyErrorsSuppressed.ts ===
2+
3+
var x: { a: string } = { a: "hello", b: 42 }; // No error
4+
>x : { a: string; }
5+
>a : string
6+
>{ a: "hello", b: 42 } : { a: string; b: number; }
7+
>a : string
8+
>"hello" : string
9+
>b : number
10+
>42 : number
11+

0 commit comments

Comments
 (0)