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-8815] Adding protocol restriction causes crash #51323

Closed
swift-ci opened this issue Sep 21, 2018 · 1 comment
Closed

[SR-8815] Adding protocol restriction causes crash #51323

swift-ci opened this issue Sep 21, 2018 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-8815
Radar None
Original Reporter Jessy (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

Xcode 10

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

md5: 78304f389b1b66c0bd52b5c641280107

duplicates:

  • SR-5581 Proper support for protocol 'where' clause with constraints on 'Self'

Issue Description:

I added a "where Self:" clause to a protocol, for clarity, and it causes crashing.

Got to `

private protocol DateFormatter

`

and change it to

`private protocol DateFormatter where Self: Formatter {`

Then try running the tests. Crash.

@belkadan
Copy link
Contributor

Superclass constraints on protocols don't really work in Swift 4.2, though they will in 5. @slavapestov, do you have a designated dup for these?

@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.
Projects
None yet
Development

No branches or pull requests

2 participants