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-511] SE-011: Add "associatedtype" keyword for declaring associated types #43128

Closed
DougGregor opened this issue Jan 9, 2016 · 2 comments
Closed
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@DougGregor
Copy link
Member

Previous ID SR-511
Radar rdar://problem/24159196
Original Reporter @DougGregor
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @gregomni
Priority Medium

md5: c05adde51e333cbc869be19170ae860f

Issue Description:

Per

https://github.com/apple/swift-evolution/blob/master/proposals/0011-replace-typealias-associated.md

we need to add the "associatedtype" keyword to declare associated types. In addition, we should add a warning + Fix-It that replaces "typealias" with "associatedtype".

@lattner
Copy link
Mannequin

lattner mannequin commented Jan 10, 2016

It would be great to get the warning/migration in for Swift 2.2.

@gregomni
Copy link
Collaborator

Mostly complete pull request at <https://github.com/apple/swift/pull/964\>. Still would like some input on what to do when "associatedtype" is attempted outside of a protocol.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants