Skip to content

@extends/@augments should work with @template #23384

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
DanielRosenwasser opened this issue Apr 12, 2018 · 0 comments
Closed

@extends/@augments should work with @template #23384

DanielRosenwasser opened this issue Apr 12, 2018 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation Fixed A PR has been merged for this issue

Comments

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Apr 12, 2018

// @ts-check

/**
 * @template {T}
 * @extends {Set<T>}
 */
export class SortableSet extends Set {

}

Current behavior is

  1. Cannot find name 'T'.
  2. Base constructors must all have the same return type.

@TheLarkInn

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Salsa labels Apr 12, 2018
@mhegazy mhegazy added this to the TypeScript 2.9 milestone Apr 12, 2018
@DanielRosenwasser DanielRosenwasser added the Domain: JSDoc Relates to JSDoc parsing and type generation label Apr 12, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Apr 20, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants