Skip to content

Overloading of interface properties having function types is inconsistent between function signature syntaxes #4462

@rotemdan

Description

@rotemdan
interface A 
{
    func(arg: string): boolean;
    func(arg: number): string;
} // OK!

interface B 
{
    func: (arg: string) => boolean;
    func: (arg: number) => string;
} // Error! Duplicate identifier 'func'.

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions