Skip to content

Spread should remove readonly from index singatures #19178

@mhegazy

Description

@mhegazy
declare var x: { readonly [x:string]: number };

var y = { ...x };

y.a = 0;  // should be ok.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions