Skip to content

Flag expressions in export assignments in ambient contexts as errors #17991

Closed
@mhegazy

Description

@mhegazy
declare module "foo" {
  export default 1 + 1;  // should not be allowed
}

originally reported in #16769

Metadata

Metadata

Assignees

Labels

Breaking ChangeWould introduce errors in existing codeBugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions