Add regression test

This commit is contained in:
Anders Hejlsberg 2019-05-17 15:59:01 -07:00
parent d67fe13e30
commit c6a670d26c

View File

@ -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";
}
}