Skip to content
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

Provide a way to supress specific compiler message like TS2415, incorrectly extends base on override method with different return type #3639

Closed
gautamsi opened this issue Jun 26, 2015 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@gautamsi
Copy link

I am working on a code port from c# to TypeScript. Having some instance of overridden methods with new keyword in derived class. like following. Is there a way that I can suppress this instance of error TS2415.
I can live with error message as it does compile the file. It will have issues when I start putting build system around, they will show as failed all the time.

class parent{
public string testmethod(){return ""}
}
class child: parent{
public new int testmethod(){return 1;}
}
@danquirk
Copy link
Member

See #2900

@danquirk danquirk added the Duplicate An existing issue was already created label Jun 26, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants