Skip to content

Ignores @augments tag on a class without an explicit extends #18740

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 Sep 25, 2017 · 0 comments
Closed

Ignores @augments tag on a class without an explicit extends #18740

ghost opened this issue Sep 25, 2017 · 0 comments
Labels
Bug A bug in TypeScript Domain: JSDoc Relates to JSDoc parsing and type generation

Comments

@ghost
Copy link

ghost commented Sep 25, 2017

TypeScript Version: nightly (2.6.0-dev.20170923)

Code

class A {
    a() {}
}

/** @augments {A} */
class B {
    b() {
        this.a();
    }
}

// @ts-ignore
inherit(A, B);

Expected behavior:

Either:

  • An error on the @augments tag.
  • The @augments tag is accepted and I can access methods from A inside B.

Actual behavior:

@augments is ignored unless we actually see extends.

Noticed while working on #18739.

@ghost ghost changed the title Ignores @augments keyword on a class without an explicit @extends clause Ignores @augments tag on a class without an explicit extends Sep 25, 2017
@mhegazy mhegazy added Domain: JSDoc Relates to JSDoc parsing and type generation Bug A bug in TypeScript labels Sep 25, 2017
@ghost ghost closed this as completed in #18775 Sep 28, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This issue was closed.
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
Projects
None yet
Development

No branches or pull requests

1 participant