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-8961] @_implements still not quite powerful enough #51466

Open
stephentyrone opened this issue Oct 10, 2018 · 2 comments
Open

[SR-8961] @_implements still not quite powerful enough #51466

stephentyrone opened this issue Oct 10, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@stephentyrone
Copy link
Member

Previous ID SR-8961
Radar rdar://problem/45183426
Original Reporter @stephentyrone
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 2c1b9edcfc10c07c2c2e04e9ff873870

Issue Description:

I finally got to dig into experimenting with @_implements this week. It looks like it's still not quite doing what we need it to do to support the comparable changes that we'd like to make.

I refined the attr_implements_fp.swift test case to exercise the behavior that we want to achieve. The key distinction is that we need the switchover from one behavior to the other to occur at an intermediate protocol, rather than only on the base concrete types.

i.e., we want to get one behavior when constrained to Comparable, and the other when constrained to some intermediate protocol, as well as the concrete types. With the current implementation, it only seems possible to have divergent behavior on the concrete types themselves.

It may be that I'm simply missing a cleverer way to achieve this; feel free to tell me so.

Revised test case on branch here: https://github.com/stephentyrone/swift/tree/implements

@stephentyrone
Copy link
Member Author

CC graydon (JIRA User) @jckarter

@airspeedswift
Copy link
Member

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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