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-1539] [SE-0092] Implement support for typealiases in protocols #44148

Closed
lattner mannequin opened this issue May 16, 2016 · 5 comments
Closed

[SR-1539] [SE-0092] Implement support for typealiases in protocols #44148

lattner mannequin opened this issue May 16, 2016 · 5 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@lattner
Copy link
Mannequin

lattner mannequin commented May 16, 2016

Previous ID SR-1539
Radar None
Original Reporter @lattner
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @slavapestov
Priority Medium

md5: 0c6cafc478b160c55238bd9a26023872

Issue Description:

SE-0092 was recently accepted:
https://github.com/apple/swift-evolution/blob/master/proposals/0092-typealiases-in-protocols.md

We need an implementation of this feature.

@dabrahams
Copy link
Collaborator

Is this meant to track the standard library changes to take advantage of (and demonstrate viability) of the feature? If not, we need a separate issue.

@lattner
Copy link
Mannequin Author

lattner mannequin commented May 17, 2016

No, this tracks the compiler feature alone.

@lattner
Copy link
Mannequin Author

lattner mannequin commented May 17, 2016

Beyond an issue, that would require a separate swift-evolution proposal.

@dabrahams
Copy link
Collaborator

Good point. But someone should still do that work in parallel with the implementation. The last time we thought we had a complete working implementation of this (or a similar?) feature, Dmitri tried to use it in the stdlib and kept finding problems.

@slavapestov
Copy link
Member

This bug tracks implementing the parser and type checker support for a typealias decl inside a protocol decl.

Note that we could already define a typealias inside a protocol extension, which is a bit buggy because of some name lookup issues, as Dmitri discovered. However those are separate issues that we can address without breaking source compatibility.

@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