File tree 3 files changed +26
-0
lines changed
tests/baselines/reference
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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 number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments