Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Duplicated name error when doing method overload in a class #434

Closed
@ypconstante

Description

@ypconstante

What version of TypeScript are you using?
2.6.2

What version of typescript-eslint-parser are you using?
11.0.0

What code were you trying to parse?

class Example {
    public doThing(type: string): void;
    public doThing(idType: number): void;
    public doThing(type: string | number): void {
    }
}

What did you expect to happen?
No errors when running with no-dupe-class-members rule enabled and method overload in the class.

What happened?

  3:5   error    Duplicate name 'doThing'             no-dupe-class-members
  4:5   error    Duplicate name 'doThing'             no-dupe-class-members

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions