Skip to content

[spec] Grammar does not allow ambients inside an internal module #533

Closed
@mhegazy

Description

@mhegazy

Courtesy of @JsonFreeman

This is just an oversight in the grammar, but the ModuleElement production does not go to AmbientDeclaration on the right side, which implies that an internal module cannot contain ambients. It needs to be added to the RHS.

Actually you need to add AmbientDeclaration, but not including AmbientExternalModuleDeclaration.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueSpecIssues related to the TypeScript language specification

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions