Merge pull request #17710 from Microsoft/add-readonly-check-to-property-access-of-index-signature

Add readonly check to property access of index signature
This commit is contained in:
Nathan Shively-Sanders
2017-08-16 11:16:54 -07:00
committed by GitHub
9 changed files with 79 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
interface Test {
readonly [key: string]: string;
}
declare var a: Test;
a.foo = 'baz';