Skip to content

Invlaid declaration emit with expressions in extend position #3810

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
mhegazy opened this issue Jul 10, 2015 · 0 comments
Closed

Invlaid declaration emit with expressions in extend position #3810

mhegazy opened this issue Jul 10, 2015 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 10, 2015

class C<T, U> {
    x: T;
    y: U;
}

function getClass<T>(c: T) {
    return C;
}

class MyClass extends getClass(2) <string, number> {
}

generates:

declare class C<T, U> {
    x: T;
    y: U;
}
declare function getClass<T>(c: T): typeof C;
declare class MyClass extends  {
}
@mhegazy mhegazy added the Bug A bug in TypeScript label Jul 10, 2015
@mhegazy mhegazy self-assigned this Jul 10, 2015
@mhegazy mhegazy added this to the TypeScript 1.7 milestone Aug 11, 2015
@mhegazy mhegazy modified the milestones: TypeScript 1.7, TypeScript 1.8 Oct 9, 2015
@mhegazy mhegazy modified the milestones: TypeScript 1.8, TypeScript 2.0 Dec 8, 2015
@mhegazy mhegazy closed this as completed in 3bb2c57 Mar 4, 2016
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Mar 4, 2016
@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
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

1 participant