mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Add regression test
This commit is contained in:
parent
d67fe13e30
commit
c6a670d26c
@ -138,3 +138,12 @@ function fn4<K extends number>() {
|
||||
let x: Array<string>[K] = 'abc';
|
||||
let y: ReadonlyArray<string>[K] = 'abc';
|
||||
}
|
||||
|
||||
// Repro from #31439
|
||||
|
||||
export class c {
|
||||
[x: string]: string;
|
||||
constructor() {
|
||||
this["a"] = "b";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user