yeah, the problem i’ve run into is i inevitably forget to keep the duplicated summaries in sync, or worse, i get tempted to intentionally replace a few words in each duplicated paragraph to make it a little more specific to the symbol.
This is an age-old problem, in pretty much every programming language. I'd love to see it given some love in Swift.
It's important that the solution result in the documentation appearing in full in the various places, not merely show some link or other means of manual redirection. Optionally with a subtle nod to the canonical version.
e.g. I option-click a map method invocation and it shows me the actual map docs from Sequence.map, with a little note at the bottom saying "From conformance to Sequence" or somesuch.
Excitedly thinking further ahead, there's obvious additional enhancements to be made too, like providing some way to say "see <parent / protocol's docs> but aspect XYZ is slightly different / additional usage note / etc". e.g. docs as for Sequence.map but with a type-specific note about the time complexity of the specific implementation in question.
documentation inheritance is computed by lib/SymbolGraphGen before markdown parsing takes place, because it is the markdown doccomments that are being inherited.