Skip to content

Should not report duplicate declaration errors for locals and parameters with the same name #8834

Closed
@mhegazy

Description

@mhegazy
class C {
  constructor(options?: number) {
    var options = (options || 0);
    // !!! error TS2687: All declarations of 'options' must have identical modifiers.
  }
}

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