Skip to content
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

[SR-7931] Document short-hand form for generic type aliases #50466

jepers opened this issue Jun 8, 2018 · 0 comments

[SR-7931] Document short-hand form for generic type aliases #50466

jepers opened this issue Jun 8, 2018 · 0 comments


Copy link

jepers commented Jun 8, 2018

Previous ID SR-7931
Radar rdar://problem/41028037
Original Reporter @jepers
Type Improvement
Additional Detail from JIRA
Votes 0
Labels Improvement
Assignee None
Priority Medium

md5: 1cae1d1241f8af82feb6fd18d96e0fef

Issue Description:

Related forum thread.

For example this:

typealias Map = Dictionary

is a short hand form for:

typealias Map<K: Hashable, V> = Dictionary<K, V>

according to this forum post by @slavapestov.

But afaict there doesn't seem to be any mention of this in any documentation.

So I guess it should be documented in eg this section:

And more generally, a lot of the behavior of type aliases, associated types and extensions is both undocumented and inconsistent/broken.

Properly documenting the intended behavior would certainly help not only us (new and seasoned) users but also the compiler devs.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant