Skip to content

Commit 59dc857

Browse files
committed
Add regression test
1 parent aaa5592 commit 59dc857

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,12 @@ function fn4<K extends number>() {
139139
let y: ReadonlyArray<string>[K] = 'abc';
140140
}
141141

142-
// Repro from #31439
142+
// Repro from #31439 and #31691
143143

144144
export class c {
145145
[x: string]: string;
146146
constructor() {
147+
this.a = "b";
147148
this["a"] = "b";
148149
}
149150
}

0 commit comments

Comments
 (0)