Skip to content

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

Closed
@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions