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-3793] Protocol extension cannot implement associated type #46378

Closed
jadengeller mannequin opened this issue Jan 30, 2017 · 1 comment
Closed

[SR-3793] Protocol extension cannot implement associated type #46378

jadengeller mannequin opened this issue Jan 30, 2017 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@jadengeller
Copy link
Mannequin

jadengeller mannequin commented Jan 30, 2017

Previous ID SR-3793
Radar None
Original Reporter @JadenGeller
Type Bug
Status Resolved
Resolution Done
Environment

Xcode
Version 8.2.1 (8C1002)
Toolchain: Swift 3.1 Snapshot 2017-01-22 (a)

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

md5: fb05cd87460934196572441b4cdb8077

relates to:

  • SR-5392 Inconsistent "invalid redeclaration of typealias"
  • SR-5440 Typealias in constrained extension misinterprets the where clause

Issue Description:

struct Base<Element: Equatable> {
  struct Glue {
  }
}

protocol Unifiable {
  associatedtype Glue
}

extension Unifiable where Self: Equatable {
  typealias Glue = Base<Self>.Glue
}

extension Int: Unifiable { } // ERROR! "Type `Int` does not conform to protocol `Unifiable`"
@AnthonyLatsis
Copy link
Collaborator

The error doesn't seem to pop up anymore

@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

1 participant