Skip to content

Only the latest JSDoc has worked #41365

@Kingwl

Description

@Kingwl

TypeScript Version: 3.7.x-dev.201xxxxx

Search Terms:
jsdoc,modifierFlags
Code

class A {
	foo () {}
}

class B extends A {
    /** @public */
    /** @deprecated */
	foo() {}
}

declare const b: B
b./*a*/

Expected behavior:

b.foo is marked as deprecated whatever the order of the jsdoc tag

Actual behavior:

image
image

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions