Skip to content

Handle @extends jsdoc tag #17072

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

Handle @extends jsdoc tag #17072

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

Comments

@ghost
Copy link

ghost commented Jul 10, 2017

TypeScript Version: nightly (2.5.0-dev.20170707)

Code

C.d.ts

export default class C<T> {
    t: T;
}

D.js

import C from "./C";

/** @extends {C<number>} */
class D extends C {}

new D().t;

Expected behavior:

t is of type number.

Actual behavior:

t is of type any.

See also #17073.

@ghost ghost added the Salsa label Jul 10, 2017
@ghost ghost mentioned this issue Sep 26, 2017
@mhegazy mhegazy added Fixed A PR has been merged for this issue Bug A bug in TypeScript labels Oct 18, 2017
@mhegazy mhegazy added this to the TypeScript 2.6.1 milestone Oct 18, 2017
@mhegazy mhegazy closed this as completed Oct 18, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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