Skip to content

Fix reparsing of JSDoc modifiers on constructor declarations#4229

Merged
ahejlsberg merged 3 commits into
mainfrom
fix-4219
Jun 6, 2026
Merged

Fix reparsing of JSDoc modifiers on constructor declarations#4229
ahejlsberg merged 3 commits into
mainfrom
fix-4219

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

Fixes #4219.

Copilot AI review requested due to automatic review settings June 6, 2026 17:11
static z = 3
/** @readonly This is OK too */
~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1024: 'readonly' modifier can only appear on a property declaration or index signature.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should never have been okay. JSDoc checking is now aligned with TS checking.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@ahejlsberg ahejlsberg added this pull request to the merge queue Jun 6, 2026
Merged via the queue into main with commit f3c4190 Jun 6, 2026
22 checks passed
@ahejlsberg ahejlsberg deleted the fix-4219 branch June 6, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSDoc @private/@protected on a constructor is ignored

3 participants