Duplicate JSDoc in union of derived interfaces #43213
Labels
Bug
A bug in TypeScript
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone
Expected behavior:
Quickinfo at
/**/
Actual behavior:
From my notes on discord explaining to the person who noticed this:
The function in the TS services is called getDocumentationComment, and it does three things:
For the example above, colour has two declarations, since it's a union: Apple.colour and Banana.colour. So:
Step 1. No comment text from either declaration.
Step 2. There are two unique declarations to iterate over.
Step 3. Each declaration has the same base, which contributes the same comment.
#35170 has separate jsdocs for each, as you point out.
#32708 only has one extended declaration, just instantiated with two generic types
The text was updated successfully, but these errors were encountered: