Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed May 17, 2019
1 parent d67fe13 commit c6a670d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts
Expand Up @@ -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";
}
}

0 comments on commit c6a670d

Please sign in to comment.