-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Readonly<T> not working #28968
Copy link
Copy link
Closed
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript
Metadata
Metadata
Assignees
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript
TypeScript Version: 3.3.0-dev.20181208
Search Terms:
Readonly
Code
Expected behavior:
Should not let me write.
Actual behavior:
It does.
Playground Link:
http://www.typescriptlang.org/play/#src=const%20a%3A%20Readonly%3Cnumber%5B%5D%3E%20%3D%20%5B1%2C2%2C3%5D%0Aa%5B1%5D%20%3D%204%0A
Related Issues: