-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type aliases are not resolved, in particular for autolinks #868
Comments
What I can't reproduce in the MWE: In my production code, not even |
This is a mixture of bugs and 'how things happen to work'. A SourceKit bug means that In the case where the project contains both the original type ( [tbh "the simplest thing" is respectfully asking the author to write "extension Foo" but I guess they probably have a good reason for doing what they did!] |
That sounds very reasonable.
In my case, I have a type Not sure how I'd like extensions to |
I'm hope I'm getting it right this time! :D
Consider code like this:
It leads to three things:
The extension property
foo2
is listed separately under "Extensions" instead of being included into the documentation ofFoo
, as it would be forextension Foo { ... }
.Reasons can be given for either behaviour, I think.
Auto-linking only works with the syntactic path; the typealias is ignored.
All these references should autolink.
If the type alias has a documentation comment, there will be three entries in total:
Foo
,HideMe
under "Extensions", andHideMe
under "Typaliases", spreading out the documentation quite a bit.Reasons can be given for this being by design, or for this being a bad idea. If the latter, a broader discussion about what should go on one page might be in order.
The text was updated successfully, but these errors were encountered: