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

inheritance of generic methods #30810

Closed
npenin opened this issue Apr 8, 2019 · 2 comments
Closed

inheritance of generic methods #30810

npenin opened this issue Apr 8, 2019 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@npenin
Copy link

npenin commented Apr 8, 2019

TypeScript Version: 3.3.3

Search Terms: inheritance inherits generic generics methods functions

Code

class A
{
    public f<T, TMember extends keyof T>(x:T, y:TMember)
    {

    }
}

class B extends A
{
    public f<T, TMember extends keyof T>(x:T, y:TMember)
    {
        
    }
}

Expected behavior:
Compiles fine
Actual behavior:
compilation error ts 2416
Playground Link:

Related Issues:

@jcalz
Copy link
Contributor

jcalz commented Apr 8, 2019

Duplicate of #25373?

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Apr 9, 2019
@npenin
Copy link
Author

npenin commented Apr 9, 2019

indeed, I did not see this one

@npenin npenin closed this as completed Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants