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-10251] Unable to infer associated type T in types conforming to child protocol with requirement T == Self #52651

Closed
swift-ci opened this issue Apr 1, 2019 · 3 comments
Labels
associated type inference bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Apr 1, 2019

Previous ID SR-10251
Radar rdar://problem/68946205
Original Reporter wircho (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Swift 5

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, AssociatedTypeInference
Assignee None
Priority Medium

md5: 3120122cc97830c80aa0b7108efc88be

Issue Description:

protocol A { associatedtype T }

protocol B: A where T == Self {}

enum C: B {} // Error: Type 'C' does not conform to protocol 'A'
@belkadan
Copy link
Contributor

belkadan commented Apr 1, 2019

@DougGregor, do you already have this one?

@lorentey
Copy link
Member

@swift-ci create

@DougGregor
Copy link
Member

Fixed on main; I've added the test case in #34030

@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
associated type inference 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

4 participants