Skip to content

Commit 3e41c2d

Browse files
Accept baselines.
1 parent bf88bf5 commit 3e41c2d

4 files changed

Lines changed: 3 additions & 21 deletions

tests/baselines/reference/assignmentCompatWithStringIndexer.errors.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ assignmentCompatWithStringIndexer.ts(51,9): error TS2322: Type 'A<T>' is not ass
2626
'string' index signatures are incompatible.
2727
Type 'T' is not assignable to type 'Derived2'.
2828
Type 'Base' is missing the following properties from type 'Derived2': baz, bar
29-
assignmentCompatWithStringIndexer.ts(55,5): error TS2322: Type 'number' is not assignable to type 'string'.
30-
assignmentCompatWithStringIndexer.ts(55,6): error TS1263: Declarations with initializers cannot also have definite assignment assertions.
3129

3230

33-
==== assignmentCompatWithStringIndexer.ts (10 errors) ====
31+
==== assignmentCompatWithStringIndexer.ts (8 errors) ====
3432
// index signatures must be compatible in assignments
3533

3634
interface Base { foo: string; }
@@ -123,9 +121,4 @@ assignmentCompatWithStringIndexer.ts(55,6): error TS1263: Declarations with init
123121
!!! error TS2322: Type 'Base' is missing the following properties from type 'Derived2': baz, bar
124122
}
125123
}
126-
127-
let x!: string = 123
128-
~
129-
!!! error TS2322: Type 'number' is not assignable to type 'string'.
130-
~
131-
!!! error TS1263: Declarations with initializers cannot also have definite assignment assertions.
124+

tests/baselines/reference/assignmentCompatWithStringIndexer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ namespace Generics {
5454
b4 = a3; // error
5555
}
5656
}
57-
58-
let x!: string = 123
57+
5958

6059
//// [assignmentCompatWithStringIndexer.js]
6160
// index signatures must be compatible in assignments
@@ -118,4 +117,3 @@ var Generics;
118117
b4 = a3; // error
119118
}
120119
})(Generics || (Generics = {}));
121-
var x = 123;

tests/baselines/reference/assignmentCompatWithStringIndexer.symbols

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,3 @@ namespace Generics {
157157
}
158158
}
159159

160-
let x!: string = 123
161-
>x : Symbol(x, Decl(assignmentCompatWithStringIndexer.ts, 54, 3))
162-

tests/baselines/reference/assignmentCompatWithStringIndexer.types

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,3 @@ namespace Generics {
209209
}
210210
}
211211

212-
let x!: string = 123
213-
>x : string
214-
> : ^^^^^^
215-
>123 : 123
216-
> : ^^^
217-

0 commit comments

Comments
 (0)