Skip to content

[Errors] function overloads and implementation declared out of order #76

Closed
@mhegazy

Description

@mhegazy
class d {
    private foo(n: number): string;
    private foo(ns: any) {
        return ns.toString();
    }
    private foo(s: string): string;
    //!!! Function implementation expected.
}

class e {
    private foo(ns: any) {
        return ns.toString();
    }
    private foo(s: string): string;
    private foo(n: number): string;
    //!!! Function implementation expected.
}

Expected: errors as noted above

Actual: no errors

Metadata

Metadata

Assignees

No one assigned

    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