Skip to content

Rest parameter with modifier is allowed #3725

@DanielRosenwasser

Description

@DanielRosenwasser

Even though the TS spec's grammar doesn't seem to permit it, the following is now allowed:

class C {
    constructor(...public rest) {
    }
}

Seems to have been introduced by 80edb2d.

Metadata

Metadata

Assignees

Labels

BugA 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