Skip to content

Commit 41a3f83

Browse files
committed
Accept new baselines
1 parent c6a670d commit 41a3f83

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

tests/baselines/reference/keyofAndIndexedAccess2.errors.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,13 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts(108,5): error TS23
219219
let x: Array<string>[K] = 'abc';
220220
let y: ReadonlyArray<string>[K] = 'abc';
221221
}
222+
223+
// Repro from #31439
224+
225+
export class c {
226+
[x: string]: string;
227+
constructor() {
228+
this["a"] = "b";
229+
}
230+
}
222231

tests/baselines/reference/keyofAndIndexedAccess2.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ function fn4<K extends number>() {
136136
let x: Array<string>[K] = 'abc';
137137
let y: ReadonlyArray<string>[K] = 'abc';
138138
}
139+
140+
// Repro from #31439
141+
142+
export class c {
143+
[x: string]: string;
144+
constructor() {
145+
this["a"] = "b";
146+
}
147+
}
139148

140149

141150
//// [keyofAndIndexedAccess2.js]
@@ -226,3 +235,9 @@ function fn4() {
226235
let x = 'abc';
227236
let y = 'abc';
228237
}
238+
// Repro from #31439
239+
export class c {
240+
constructor() {
241+
this["a"] = "b";
242+
}
243+
}

tests/baselines/reference/keyofAndIndexedAccess2.symbols

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,3 +503,17 @@ function fn4<K extends number>() {
503503
>K : Symbol(K, Decl(keyofAndIndexedAccess2.ts, 133, 13))
504504
}
505505

506+
// Repro from #31439
507+
508+
export class c {
509+
>c : Symbol(c, Decl(keyofAndIndexedAccess2.ts, 136, 1))
510+
511+
[x: string]: string;
512+
>x : Symbol(x, Decl(keyofAndIndexedAccess2.ts, 141, 3))
513+
514+
constructor() {
515+
this["a"] = "b";
516+
>this : Symbol(c, Decl(keyofAndIndexedAccess2.ts, 136, 1))
517+
}
518+
}
519+

tests/baselines/reference/keyofAndIndexedAccess2.types

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,3 +499,21 @@ function fn4<K extends number>() {
499499
>'abc' : "abc"
500500
}
501501

502+
// Repro from #31439
503+
504+
export class c {
505+
>c : c
506+
507+
[x: string]: string;
508+
>x : string
509+
510+
constructor() {
511+
this["a"] = "b";
512+
>this["a"] = "b" : "b"
513+
>this["a"] : string
514+
>this : this
515+
>"a" : "a"
516+
>"b" : "b"
517+
}
518+
}
519+

0 commit comments

Comments
 (0)