Error message at a constant or a read-only property
could be more specific
#28297
Labels
Domain: Error Messages
The issue relates to error messaging
Experience Enhancement
Noncontroversial enhancements
Milestone
TypeScript Version: 3.2.0-dev.20181101
Code
Expected behavior:
Cannot assign to 'isMutable' because it is a constant.
Actual behavior:
Cannot assign to 'isMutable' because it is a constant or a read-only property.
It's obviously not a property, and the compiler should be able to tell this. Note this is more tricky withnamespace N { export const x = 0; }
, which is also a property, but I think calling it just "a constant" in that case is fine.The text was updated successfully, but these errors were encountered: