Skip to content

export default with two functions and an interface gets a bad error location #39804

Closed
@elibarzilay

Description

@elibarzilay

The:

export default interface A { a: string; }
export default function() { return 1; }
export default function() { return 2; }

reports Duplicate function implementation as expected, but shows the location as the first line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions