Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Declaration file for the method overload is not emitted correctly #480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sheetalkamat opened this issue Aug 19, 2014 · 0 comments · Fixed by #514
Closed

Declaration file for the method overload is not emitted correctly #480

sheetalkamat opened this issue Aug 19, 2014 · 0 comments · Fixed by #514
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@sheetalkamat
Copy link
Member

class c {
    public Intersects(obj: number): boolean;
    public Intersects(obj: any): boolean {
        return false;
    }
}

Expected:

declare class c {
    Intersects(obj: number): boolean;
}
declare var x: c;

Currently:

declare class c {
    Intersects(obj: number): boolean;
    Intersects(obj: any): boolean;
}
declare var x: c;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
3 participants