mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-04 16:13:38 -05:00
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:
@@ -0,0 +1,6 @@
|
||||
interface Test {
|
||||
readonly [key: string]: string;
|
||||
}
|
||||
|
||||
declare var a: Test;
|
||||
a.foo = 'baz';
|
||||
Reference in New Issue
Block a user