Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Addresses feedback on #21184 regarding the "Annotation inheritance" section in the overlay annotations documentation. The original text didn't sufficiently emphasize that overlay annotations on modules and types inherit to nested declarations.

Changes

  • Rewrote the opening paragraph of the "Annotation inheritance" section to explicitly state that annotations are "inherited by all nested declarations within them"
  • Split the explanation into clearer sentences to emphasize the inheritance mechanism as the key feature
  • Maintains the distinction that only modules and types (not predicates) can have nested declarations

Context

The specification table shows overlay annotations apply to modules, classes, algebraic datatypes, type unions, characteristic predicates, and predicates. However, only modules and types can contain nested declarations—predicates cannot. The revised text clarifies this inheritance behavior without incorrectly implying predicates have nested declarations.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: ginsbach <12936686+ginsbach@users.noreply.github.com>
Copilot AI changed the title [WIP] Update overlay annotations documentation for nested declarations Clarify overlay annotation inheritance applies to nested declarations Jan 19, 2026
Copilot AI requested a review from ginsbach January 19, 2026 12:43
@ginsbach ginsbach closed this Jan 19, 2026
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.

2 participants